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

Nicholas Mc Guire der.herr at hofr.at
Tue May 29 01:25:40 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>
>  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:
>

Why are you sorry ? This is what this list is for - and if nobody can
answer it then its good you sent it - thanks !

<snip...>
> #if 1	/* this is add by me */

could you change this to use onle R3-R13 as these are caller safe - My
suspicion i sthat you are using R0/1/2 and that is not healthy here.

>        stwu    r1, -16(r1)
>        mflr    r0
>        stw     r0, 20(r1)
>        bl      emulate_iret
>        lwz     r0, 20(r1)
>        mtlr    r0
>        addi    r1, r1, 16
> #endif
>        addi    r11,r1,STACK_FRAME_OVERHEAD
>        stw     r11,PT_REGS(r12)
>
out of PPC too long - but will see if I can find something.

hofrat
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFGWvR4nU7rXZKfY2oRArQDAJ99xJOrUlqYpPPuJtoqH27lGeDJ9ACeIj97
1bPlGITc1bVMw1V5YmXnG34=
=hvub
-----END PGP SIGNATURE-----



More information about the Linuxppc-dev mailing list