ARM: add __noreturn to board_init_lowlevel_return
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
5b03b8148f
commit
5cd60cb217
|
@ -118,9 +118,9 @@ static void mmu_disable(void)
|
|||
__mmu_cache_off();
|
||||
}
|
||||
|
||||
static void barebox_uncompress(void *compressed_start, unsigned int len)
|
||||
static void __noreturn barebox_uncompress(void *compressed_start, unsigned int len)
|
||||
{
|
||||
void (*barebox)(void);
|
||||
void __noreturn (*barebox)(void);
|
||||
/*
|
||||
* remap_cached currently does not work rendering the feature
|
||||
* of enabling the MMU in the PBL useless. disable for now.
|
||||
|
@ -155,7 +155,7 @@ static void barebox_uncompress(void *compressed_start, unsigned int len)
|
|||
* Board code can jump here by either returning from board_init_lowlevel
|
||||
* or by calling this function directly.
|
||||
*/
|
||||
void __naked board_init_lowlevel_return(void)
|
||||
void __naked __noreturn board_init_lowlevel_return(void)
|
||||
{
|
||||
uint32_t offset;
|
||||
uint32_t pg_start, pg_end, pg_len;
|
||||
|
|
|
@ -55,7 +55,7 @@ void __naked __bare_init reset(void)
|
|||
* Board code can jump here by either returning from board_init_lowlevel
|
||||
* or by calling this function directly.
|
||||
*/
|
||||
void __naked board_init_lowlevel_return(void)
|
||||
void __naked __noreturn board_init_lowlevel_return(void)
|
||||
{
|
||||
arm_setup_stack(STACK_BASE + STACK_SIZE - 16);
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ int dram_init (void);
|
|||
extern char __exceptions_start[], __exceptions_stop[];
|
||||
|
||||
void board_init_lowlevel(void);
|
||||
void board_init_lowlevel_return(void);
|
||||
void __noreturn board_init_lowlevel_return(void);
|
||||
uint32_t get_runtime_offset(void);
|
||||
|
||||
void setup_c(void);
|
||||
|
|
Loading…
Reference in New Issue