Skip to contentSkip to conversation

pte entries for the 440

DISCUSSION Ralph Blach 2 participants 2 messages Apr 24, 2001

lore
Share & tools
lore
#0 lore raw

I am starting a port of linux to the IBM440 processor. The 440 has an 36 bit address space. Reading the kernel sources, I see two options for the page tables.
1)One, make it a structure with the permissions being in the second word.
2)Make it a long long.

Does anybody have any ideas on this?

Thanks

Chip

begin:vcard
n:Blach;Ralph
tel;work:919-543-1207
x-mozilla-html:TRUE
url:www.ibm.com
org:IBM MicroElectronics
adr:;;3039 Cornwallis ;RTP;NC;27709;USA
version:2.1
email;internet:[email protected]
x-mozilla-cpt:;15936
fn:Ralph Blach
end:vcard

#1 lore raw
Quoted 6 lines · Ralph Blach

I am starting a port of linux to the IBM440 processor. The 440 has an 36 bit address space. Reading the kernel sources, I see two options for the page tables.
1)One, make it a structure with the permissions being in the second word.
2)Make it a long long.

Make it a structure, gcc is (or at least was) not very good at manipulating 64 bit integers on 32 bit machines. I suspect that you need to shift/mask the physical address to put the bits in the correct place, in this case gcc prefers a stucture for sure.

It is much easier on the compiler and the register allocation routines to consider single register quantities.

Regards,
Gabriel.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/