From b767eafd8c60691d59d986b06828f6f0cb33b27a Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sat, 6 Dec 2008 06:08:51 -0500 Subject: [PATCH] Turn off alignment checking. --- aseg-paging/entry.asm | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.43.0