X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/92bb2596b1eda2324da82825b882df5dce9dfbbb..59ceede5a30c0756313c208e67b69da11c67fd96:/aseg-paging/entry.asm?ds=sidebyside 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.