diff options
Diffstat (limited to 'src/arch/riscv')
-rw-r--r-- | src/arch/riscv/include/arch/stages.h | 1 | ||||
-rw-r--r-- | src/arch/riscv/stages.c | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/arch/riscv/include/arch/stages.h b/src/arch/riscv/include/arch/stages.h index d07983e9f9..9e2a37827e 100644 --- a/src/arch/riscv/include/arch/stages.h +++ b/src/arch/riscv/include/arch/stages.h @@ -19,7 +19,6 @@ extern void main(void); void stage_entry(void) __attribute__((section(".text.stage_entry"))); -void stage_exit(void *); void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size); #endif diff --git a/src/arch/riscv/stages.c b/src/arch/riscv/stages.c index a3a5e02d59..053fd7634c 100644 --- a/src/arch/riscv/stages.c +++ b/src/arch/riscv/stages.c @@ -30,19 +30,3 @@ void stage_entry(void) { main(); } - -/* we had marked 'doit' as 'noreturn'. - * There is no apparent harm in leaving it as something we can return from, and in the one - * case where we call a payload, the payload is allowed to return. - * Hence, leave it as something we can return from. - */ -void stage_exit(void *addr) -{ - void (*doit)(void) = addr; - /* - * Most stages load code so we need to sync caches here. Should maybe - * go into cbfs_load_stage() instead... - */ - //cache_sync_instructions(); - doit(); -} |