Marco Stornelli <marco.stornelli@gmail.com> writes:
This won't work at all on x86 because you don't handle large
pages.
And it doesn't work on x86-64 because the first 2GB are double
mapped (direct and kernel text mapping)
Thirdly I expect it won't either on architectures that map
the direct mapping with special registers (like IA64 or MIPS)
I'm not sure this is very useful anyways. It doesn't protect
against stray DMA and it doesn't protect against writes through
broken user PTEs.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
--