[ROSLOAD]: Fix NX enabling
authorAlex Ionescu <aionescu@gmail.com>
Sun, 28 Jan 2018 15:29:43 +0000 (16:29 +0100)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 28 Jan 2018 15:29:43 +0000 (16:29 +0100)
commit478348ead113ae5d5b5eaf579b540f65339bebbd
tree6d95bb5cf9d0dd56ed65c4d228460efe69ccb5a1
parente836d0b56e9a83aececee51bfbc97fabc792d27d
[ROSLOAD]: Fix NX enabling

[ROSLOAD]: The IA32_MISC_ENABLE MSR bit actually _disables_ NX, so
diabling the bit _enables_ NX.
[ROSLOAD]: The MSR_XD_ENABLE_MASK is for the _high_ DWORD of the MSR
(bit 34), not the low.
[ROSLOAD]: Fix printf.
[ENVIRON/ROSLOAD]: Switch to CPU_INFO structure instead of blindly using
INT[4]. Revealed a bug in the PAE detection which was reading out of
bounds.
boot/environ/app/rosload/rosload.c
boot/environ/include/bl.h
boot/environ/lib/misc/util.c
boot/environ/lib/mm/i386/mmx86.c