mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Introduce forth_init() for trampoline initialization
Use init_trampoline() for trampoline variable initialization. Add calls to a new forth_init() function for each architecture to invoke it. Idea courtesy of Blue. This fixes ppc64 compilation by avoiding a casted self-reference. v2: * Share init_trampoline() with kernel/bootstrap.c, suggested by Mark. * Adopt QEMU coding style for new functions. Cc: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Acked-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@954 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Andreas Färber
parent
8a01c240b8
commit
c3b33b6610
@@ -32,6 +32,8 @@ extern void panic(const char *error) __attribute__ ((noreturn));
|
||||
|
||||
extern xt_t findword(const char *s1);
|
||||
extern void modules_init( void );
|
||||
extern void init_trampoline(ucell *t);
|
||||
extern void forth_init(void);
|
||||
|
||||
/* arch kernel hooks */
|
||||
extern void exception(cell no);
|
||||
|
||||
Reference in New Issue
Block a user