Mercurial > lcfOS
diff cos/kernel/asmcode.asm @ 18:6129643f5c34
Fixed interrupt issue, ds, es, ss, fs and gs were not initialized to 0
author | windel |
---|---|
date | Sun, 20 Nov 2011 20:35:51 +0100 |
parents | f3e3e0e9c4bc |
children | 66e9c332c845 |
line wrap: on
line diff
--- a/cos/kernel/asmcode.asm Sat Nov 19 20:01:28 2011 +0100 +++ b/cos/kernel/asmcode.asm Sun Nov 20 20:35:51 2011 +0100 @@ -5,21 +5,6 @@ section .text align 4 -; Port helpers: -;global outb -;outb: -; mov eax, [esp + 8] -; mov edx, [esp + 4] -; out dx, al -; ret - -;global inb -;inb: -; xor eax, eax -; mov edx, [esp + 4] -; in al, dx -; ret - global halt halt: cli @@ -63,11 +48,16 @@ global %1 %1: ; Do some saving: + cli pushAll + ;xchg bx,bx + extern %2 call %2 ; Do restoration popAll + ;xchg bx, bx + sti iretq %endmacro