On 3 May 2016 at 15:01, Michael Zimmermann <[email protected]> wrote: > wouldn't it be even better to map everything (the whole 32/64bit addr range) > without any permissions(fault on read, write or exec), and then require the > platforms to map IO-registers properly? >
We already do that. While we use a 1:1 mapping, we are still enabling the MMU and so we need to map memory and I/O with different attributes, and regions that we leave unmapped will fault. However, the default mapping for memory is RWX, and we only deviate from that at boot time for the stack in some cases, while it would be much better to map all of RAM RW- by default, and only switch to R-X when necessary. _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

