Quote:
asm Fork(void)
{
lis r3,0x0010
addi r3,r3,0x0000
mtlr r3
frfree
blr
}
By calling this function if the starting address of romimage is 0x00100000 it sholud work as on subroutine exit the PC register is loaded with that value.
But i've problem...
Has anybody any ideas?
i'm not a ppc CW user, but are you sure your Fork() actually has a stack frame? otherwise that frfree directive will wreak havok.
btw, that addi with 0 is effectively a nop.
edit: please excuse my thread necromancy, i did not pay attention of the OP date.