summaryrefslogtreecommitdiff
path: root/src/arch/riscv
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-02-10 22:54:07 -0600
committerAaron Durbin <adurbin@chromium.org>2016-02-11 23:12:06 +0100
commitae3f3024d9ef60c6e12d9b49b2fd955939616504 (patch)
tree3d0b304afabc9f70b9efe79aca8426f5e07e205f /src/arch/riscv
parent69d20c45ecd8d224f1e9cf785f4fa441feb6e0a3 (diff)
downloadcoreboot-ae3f3024d9ef60c6e12d9b49b2fd955939616504.tar.xz
arch: remove stage_exit()
It's no longer used. Remove it. Change-Id: Id6f4084ab9d671e94f0eee76bf36fad9a174ef14 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13678 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch/riscv')
-rw-r--r--src/arch/riscv/include/arch/stages.h1
-rw-r--r--src/arch/riscv/stages.c16
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();
-}