summaryrefslogtreecommitdiff
path: root/src/arch/arm
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/arm
parent69d20c45ecd8d224f1e9cf785f4fa441feb6e0a3 (diff)
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/arm')
-rw-r--r--src/arch/arm/include/arch/stages.h1
-rw-r--r--src/arch/arm/stages.c16
2 files changed, 0 insertions, 17 deletions
diff --git a/src/arch/arm/include/arch/stages.h b/src/arch/arm/include/arch/stages.h
index ef4658ef89..2d20604589 100644
--- a/src/arch/arm/include/arch/stages.h
+++ b/src/arch/arm/include/arch/stages.h
@@ -19,6 +19,5 @@
extern void main(void);
void stage_entry(void);
-void stage_exit(void *);
#endif
diff --git a/src/arch/arm/stages.c b/src/arch/arm/stages.c
index 6e5b8cd4a5..2beaacd1f8 100644
--- a/src/arch/arm/stages.c
+++ b/src/arch/arm/stages.c
@@ -34,19 +34,3 @@ __attribute__((weak)) 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();
-}