]> Joshua Wise's Git repositories - netwatch.git/commitdiff
Turn off alignment checking.
authorJoshua Wise <joshua@nyus.joshuawise.com>
Sat, 6 Dec 2008 11:08:51 +0000 (06:08 -0500)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Sat, 6 Dec 2008 11:08:51 +0000 (06:08 -0500)
aseg-paging/entry.asm

index 03dd7c476a88ce934f2accd0e2c90ad9a72eda4e..151382ea81f1b3a783df99562b13c79a225aafed 100644 (file)
@@ -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.
This page took 0.028969 seconds and 4 git commands to generate.