X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/9e2a82e4e9495f33b8e6423c335a9a157f056254..73d65ee64db897452946c14e2b911b4c1f106b26:/aseg-paging/entry.asm diff --git a/aseg-paging/entry.asm b/aseg-paging/entry.asm index 03dd7c4..151382e 100644 --- a/aseg-paging/entry.asm +++ b/aseg-paging/entry.asm @@ -22,6 +22,13 @@ continue: mov gs, ax mov ss, ax mov esp, [dataptr] ; Load stack pointer. + + ; Before we do anything, turn off alignment checking. + pushf + pop eax + and eax, ~(1 << 18) + push eax + popf mov eax, [dataptr+4] ; Load target jump address call eax ; then jump into C.