Am 09.11.2010 um 11:35 schrieb Mark Cave-Ayland:
Andreas Färber wrote:
Move trampoline variable initialization to init_trampoline(), like in kernel/bootstrap.c. 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. Cc: Blue Swirl blauwirbel@gmail.com Signed-off-by: Andreas Färber andreas.faerber@web.de
The basic patch looks fine to me, except that you've missed one of the callers in kernel/bootstrap.c (i.e. I'd rip out the version there and use yours instead).
Careful, bootstrap.c is initializing a different trampoline. That's why my init_trampoline() needed to be static. Both will need to be initialized.
Andreas