* why the PAGE_OFFSET is not 0xc0000000 on m68k platform
@ 2009-05-21 4:17 Lanttor
2009-05-21 11:29 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Lanttor @ 2009-05-21 4:17 UTC (permalink / raw)
To: linux-m68k
Hi,
I see the definition of PAGE_OFFSET on m68k platform like that:
#define PAGE_OFFSET (PAGE_OFFSET_RAW)
#ifdef CONFIG_MMU
#ifndef CONFIG_SUN3
#define PAGE_OFFSET_RAW 0x00000000
#else
#define PAGE_OFFSET_RAW 0x0E000000
#endif
#else
#define PAGE_OFFSET_RAW CONFIG_RAMBASE
#endif
In my understanding, the kernel page mapping depends on PAGE_OFFSET.
For example, if PAGE_OFFSET is 0x00000000 (assuming 256M memory), the
kernel virtual address will be at (0x00000000 - 0x10000000), right?
Could this incur some side effect? I see the definition of PAGE_OFFSET
is 0xc0000000 on much platforms.
Thanks,
--
Best Regards,
Lanttor
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: why the PAGE_OFFSET is not 0xc0000000 on m68k platform
2009-05-21 4:17 why the PAGE_OFFSET is not 0xc0000000 on m68k platform Lanttor
@ 2009-05-21 11:29 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2009-05-21 11:29 UTC (permalink / raw)
To: Lanttor; +Cc: linux-m68k
Lanttor <lanttor.guo@freescale.com> writes:
> In my understanding, the kernel page mapping depends on PAGE_OFFSET.
> For example, if PAGE_OFFSET is 0x00000000 (assuming 256M memory), the
> kernel virtual address will be at (0x00000000 - 0x10000000), right?
On m68k, the kernel virtual addresses are in a separate address space
from user space, thus the value of PAGE_OFFSET is somewhat arbitrary.
> Could this incur some side effect? I see the definition of PAGE_OFFSET
> is 0xc0000000 on much platforms.
On those platforms kernel and user space share the same address space,
and PAGE_OFFSET makes sure that they don't overlap.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-21 11:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21 4:17 why the PAGE_OFFSET is not 0xc0000000 on m68k platform Lanttor
2009-05-21 11:29 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox