E200 Thread Init
Posted: Mon Nov 27, 2017 11:26 am
Hello,
I've been going through the powerpc port code in reference while porting a risc v board and there's a bit of the thread init code I don't understand.
After writing to the interrupt enable register, r31 is copied to r3 and r30 is copied to ctr but there I found no init of those regs( r30,r31) and the e200 documents make no specific mention of them in this context.
I found some documentation online that suggests linux uses r31 as the global pointer but this is specific to that kernel, OS X uses r13. Could someone point me in the right direction?
I've been going through the powerpc port code in reference while porting a risc v board and there's a bit of the thread init code I don't understand.
After writing to the interrupt enable register, r31 is copied to r3 and r30 is copied to ctr but there I found no init of those regs( r30,r31) and the e200 documents make no specific mention of them in this context.
I found some documentation online that suggests linux uses r31 as the global pointer but this is specific to that kernel, OS X uses r13. Could someone point me in the right direction?