1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

trampoline code doesn't longer enable SMEP

because old CPUs don't support this feature
This commit is contained in:
Stefan Lankes 2016-07-19 23:36:01 +02:00
parent 534170354e
commit 6c339c64d6

View file

@ -208,7 +208,6 @@ L1:
mov eax, cr4
and eax, 0xfffbf9ff ; disable SSE
or eax, (1 << 7) ; enable PGE
or eax, (1 << 20) ; enable SMEP
mov cr4, eax
; Set CR0 (PM-bit is already set)