* How do you determine PA in the X86_PAE mode.
@ 2001-01-25 22:09 Bulent Abali
2001-01-26 11:53 ` Stephen C. Tweedie
0 siblings, 1 reply; 2+ messages in thread
From: Bulent Abali @ 2001-01-25 22:09 UTC (permalink / raw)
To: linux-mm
Given struct page * p, how do you determine the physical page number in the
CONFIG_X86_PAE mode?
Is it simply (p - mem_map) ? Thanks for any suggestions.
Bulent Abali
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do you determine PA in the X86_PAE mode.
2001-01-25 22:09 How do you determine PA in the X86_PAE mode Bulent Abali
@ 2001-01-26 11:53 ` Stephen C. Tweedie
0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 2001-01-26 11:53 UTC (permalink / raw)
To: Bulent Abali; +Cc: linux-mm
Hi,
On Thu, Jan 25, 2001 at 05:09:40PM -0500, Bulent Abali wrote:
> Given struct page * p, how do you determine the physical page number in the
> CONFIG_X86_PAE mode?
> Is it simply (p - mem_map) ? Thanks for any suggestions.
Yes, but only on i386 machines. There are other systems which don't
necessarily have all their physical memory arranged sequentially, so
the 2.4 VM avoids using physical page numbers in any of the high-level
code. You're better off just using the struct page * to reference the
page, and convert that to virtual addresses as you need it.
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-26 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25 22:09 How do you determine PA in the X86_PAE mode Bulent Abali
2001-01-26 11:53 ` Stephen C. Tweedie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox