Kernel/x86 - Clean up some of the task switching code (possibly a little broken)
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / common.inc.asm
1 %macro PUSH_CC  0
2         ; Don't bother being too picky, just take the time
3         pusha
4 %endmacro
5 %macro PUSH_SEG 0
6         push ds
7         push es
8         push fs
9         push gs
10         mov ax, 0x10
11         mov ds, ax
12         mov es, ax
13         mov fs, ax
14         mov gs, ax
15 %endmacro
16 %macro POP_CC   0
17         popa
18 %endmacro
19 %macro POP_SEG  0
20         pop gs
21         pop fs
22         pop es
23         pop ds
24 %endmacro

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