83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2008-2011
|
|
* Graeme Russ, <graeme.russ@gmail.com>
|
|
*
|
|
* (C) Copyright 2002
|
|
* Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
|
|
*
|
|
* (C) Copyright 2002
|
|
* Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
|
|
*
|
|
* (C) Copyright 2002
|
|
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
|
|
* Marius Groeger <mgroeger@sysgo.de>
|
|
*
|
|
* Copyright 2015 ATS Advanced Telematics Systems GmbH
|
|
* Copyright 2015 Konsulko Group, Matt Porter <mporter@konsulko.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <command.h>
|
|
|
|
/*
|
|
* ARMv7M does not support ARM instruction mode. However, the
|
|
* interworking BLX and BX instructions do encode the ARM/Thumb
|
|
* field in bit 0. This means that when executing any Branch
|
|
* and eXchange instruction we must set bit 0 to one to guarantee
|
|
* that we keep the processor in Thumb instruction mode. From The
|
|
* ARMv7-M Instruction Set A4.1.1:
|
|
* "ARMv7-M only supports the Thumb instruction execution state,
|
|
* therefore the value of address bit [0] must be 1 in interworking
|
|
* instructions, otherwise a fault occurs."
|
|
*/
|
|
unsigned long do_go_exec(ulong (*entry)(int, char * const []),
|
|
int argc, char * const argv[])
|
|
{
|
|
ulong addr = (ulong)entry | 1;
|
|
entry = (void *)addr;
|
|
|
|
return entry(argc, argv);
|
|
}
|