Skip to content

Commit 0877d44

Browse files
committed
fix GPAW mask in the reset vector
GPAW is the [0:6] bit of ESP. the current mask 0x2f does not extract the 5th bit. 0x3f is the correct bitmask. this should close issue #734 Signed-off-by: Yu Ding <[email protected]>
1 parent 66f0aaf commit 0877d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

td-shim/ResetVector/Ia32/Flat32ToFlat64.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Transition32FlatTo64Flat:
2222
; LA57 and use 5-level paging
2323
;
2424
mov ecx, esp
25-
and ecx, 0x2f
25+
and ecx, 0x3f
2626
cmp ecx, 52
2727
jl .set_cr4
2828
bts eax, 12

0 commit comments

Comments
 (0)