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>
This commit is contained in:
parent
69d20c45ec
commit
ae3f3024d9
|
@ -19,6 +19,5 @@
|
|||
extern void main(void);
|
||||
|
||||
void stage_entry(void);
|
||||
void stage_exit(void *);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
extern void main(void);
|
||||
|
||||
void stage_entry(void);
|
||||
void stage_exit(void *);
|
||||
void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,6 +19,5 @@
|
|||
extern void main(void);
|
||||
|
||||
void stage_entry(void);
|
||||
void stage_exit(void *);
|
||||
|
||||
#endif /* __MIPS_ARCH_STAGES_H */
|
||||
|
|
|
@ -20,9 +20,3 @@ void stage_entry(void)
|
|||
{
|
||||
main();
|
||||
}
|
||||
|
||||
void stage_exit(void *addr)
|
||||
{
|
||||
void (*doit)(void) = addr;
|
||||
doit();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -20,15 +20,4 @@
|
|||
|
||||
void asmlinkage copy_and_run(void);
|
||||
|
||||
static inline void stage_exit(void *entry)
|
||||
{
|
||||
__asm__ volatile (
|
||||
#ifdef __x86_64__
|
||||
"jmp *%%rdi\n"
|
||||
#else
|
||||
"jmp *%%edi\n"
|
||||
#endif
|
||||
:: "D"(entry)
|
||||
);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue