Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / common.inc.asm
diff --git a/KernelLand/Kernel/arch/x86/common.inc.asm b/KernelLand/Kernel/arch/x86/common.inc.asm
new file mode 100644 (file)
index 0000000..ec7f844
--- /dev/null
@@ -0,0 +1,24 @@
+%macro PUSH_CC 0
+       ; Don't bother being too picky, just take the time
+       pusha
+%endmacro
+%macro PUSH_SEG        0
+       push ds
+       push es
+       push fs
+       push gs
+       mov ax, 0x10
+       mov ds, ax
+       mov es, ax
+       mov fs, ax
+       mov gs, ax
+%endmacro
+%macro POP_CC  0
+       popa
+%endmacro
+%macro POP_SEG 0
+       pop gs
+       pop fs
+       pop es
+       pop ds
+%endmacro

UCC git Repository :: git.ucc.asn.au