Skip to content

Commit

Permalink
fix GPAW mask in the reset vector
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dingelish committed Sep 6, 2024
1 parent 66f0aaf commit 46355f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td-shim/ResetVector/Ia32/Flat32ToFlat64.asm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Transition32FlatTo64Flat:
; LA57 and use 5-level paging
;
mov ecx, esp
and ecx, 0x2f
and ecx, 0x3f
cmp ecx, 52
jl .set_cr4
bts eax, 12
Expand Down

0 comments on commit 46355f2

Please sign in to comment.