linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* pte entries for the 440
@ 2001-04-24 16:01 Ralph Blach
  2001-04-24 16:19 ` Gabriel Paubert
  0 siblings, 1 reply; 2+ messages in thread
From: Ralph Blach @ 2001-04-24 16:01 UTC (permalink / raw)
  To: Embedded Linux list

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

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

[-- Attachment #2: Card for Ralph Blach --]
[-- Type: text/x-vcard, Size: 247 bytes --]

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:rcblach@raleigh.ibm.com
x-mozilla-cpt:;15936
fn:Ralph Blach
end:vcard

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pte entries for the 440
  2001-04-24 16:01 pte entries for the 440 Ralph Blach
@ 2001-04-24 16:19 ` Gabriel Paubert
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Paubert @ 2001-04-24 16:19 UTC (permalink / raw)
  To: Ralph Blach; +Cc: Embedded Linux list


On Tue, 24 Apr 2001, Ralph Blach wrote:

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-24 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-24 16:01 pte entries for the 440 Ralph Blach
2001-04-24 16:19 ` Gabriel Paubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).