Is it possible to call a C function in transfer_to_handler(arch/ppc/kernel/entry.S)?

Paul Mackerras paulus at samba.org
Mon May 28 21:28:30 EST 2007


Wang, Baojun writes:

>   I'm sorry to ask this topic in this mailling list. I've spend more than 2 
> days try to add a C function call in transfer_to_handler(in 
> arch/ppc/kernel/entry.S) like this:

It's not going to work, because the MMU is off at this point.  It will
explode as soon as the C code tries to touch any external variable.

Paul.



More information about the Linuxppc-dev mailing list