Re: kernel page table mapping for >1GB <3 GB for x86 arch without PAE

From: Roland Dreier
Date: Fri Aug 28 2009 - 15:49:36 EST



> But my question is with regard to setting up the page tables during the kernel initialization in such a way so that entire RAM upto 4GB can be mapped. i.e virtual to physical address mapping. My question is strictly with reg. to physical address mapping only.
>
> Why does kernel stop at 1GB (896 MB to be exact) while mapping from linear to physical address.

Because it wants to be able to give userspace 3GB of address space. And
userspace mapping cannot be a linear mapping to physical memory -- it
must be real virtual memory that has proper access permissions and can
handle mmap'ed files, shared libraries, etc etc. So userspace cannot
share the kernel's linear mapping.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/