Linux MIPS Architecture development
 help / color / mirror / Atom feed
* 64 bit operations w/32 bit kernel
@ 2003-09-29 17:31 Finney, Steve
  2003-09-29 17:31 ` Finney, Steve
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Finney, Steve @ 2003-09-29 17:31 UTC (permalink / raw)
  To: linux-mips

What would be the downside to enabling 64 bit operations in user space on a 32 bit kernel (setting the PX bit in the status register?). The particular issue is that I want to access 64 bit-memory mapped registers, and I really need to do it as an atomic operation. I tried borrowing sibyte/64bit.h from the kernel, but I get an illegal instruction on the double ops.

Also, assuming this isn't a horrible idea, is there any obvious single place where "default" values in the CP0 status register get set?

Thanks,
sf

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: 64 bit operations w/32 bit kernel
@ 2003-09-30 19:23 Finney, Steve
  2003-09-30 19:23 ` Finney, Steve
  0 siblings, 1 reply; 16+ messages in thread
From: Finney, Steve @ 2003-09-30 19:23 UTC (permalink / raw)
  To: Ralf Baechle, Finney, Steve; +Cc: linux-mips

> 
> What you want really is a 64-bit kernel.  On a 64-bit kernel even for
> processes running in 32-bit address spaces (o32, N32) the processor
> will run with the UX bit enabled.  o32 userspace still lives in the
> assumption that registers are 32-bit so only those bits will 
> be restored
> in function calls etc.  N32 (where userspace isn't ready for 
> prime time
> yet) does guarantee that.  And N64 (userspace similarly not ready for
> prime time) obviously is fully 64-bit everything.

What is the page table space impact of a 64 bit kernel on an architecture like the Sibyte with discontiguous physical address spaces?  Do you still waste 36 MB of page table space on the "hole", or does it even double because the page table entries are bigger for the wider addresses? Or do the issues become irrelevant with the larger address space?

Thanks,
sf

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

end of thread, other threads:[~2003-10-01 16:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-29 17:31 64 bit operations w/32 bit kernel Finney, Steve
2003-09-29 17:31 ` Finney, Steve
2003-09-29 19:01 ` Michael Uhler
2003-09-30 14:49   ` Kip Walker
2003-09-30 16:00 ` Ralf Baechle
2003-09-30 18:04   ` Maciej W. Rozycki
2003-09-30 18:47     ` Ralf Baechle
2003-10-01  3:58       ` Maciej W. Rozycki
2003-09-30 18:29   ` Michael Uhler
2003-09-30 19:10     ` Maciej W. Rozycki
2003-09-30 19:27       ` Michael Uhler
2003-10-01  4:26         ` Maciej W. Rozycki
2003-10-01 16:24           ` Ralf Baechle
2003-09-30 19:48     ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2003-09-30 19:23 Finney, Steve
2003-09-30 19:23 ` Finney, Steve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox