View Single Post
Old 28 October 2019, 11:46   #1
Hedeon
PPC Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,219
VBCC: Restrict usage of registers in C

Hi,

I am busy transferring the WarpOS compatible kernel I did for PCI PPC cards from assembly to C. Of course the kernel is very low level and it is unavoidable to use assembly here and there.

The 603 and e300 PPCs don't have hardware tlb lookup and make use of software exceptions to load the correct values from the page table.

To accomplish this the exceptions use four shadow registers called r0-r3. They are independent from the 'normal' registers which are also called r0-r3 (up to r31).

IF I want to make this in C, I need to restrict the usage of registers to these 4. Is this even possible with VBCC?
Hedeon is offline  
 
Page generated in 0.04118 seconds with 11 queries