kern

diff src/asmops.h @ 54:4eaecb14fe31

bringing the task switching thing into shape with proper per-process kernel stacks and shit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 14 Aug 2011 16:57:23 +0300
parents 5f6c5751ae05
children
line diff
     1.1 --- a/src/asmops.h	Mon Aug 08 09:53:10 2011 +0300
     1.2 +++ b/src/asmops.h	Sun Aug 14 16:57:23 2011 +0300
     1.3 @@ -13,6 +13,9 @@
     1.4  #define disable_intr() asm volatile("cli")
     1.5  #define halt_cpu() asm volatile("hlt")
     1.6  
     1.7 +#define push_regs() asm volatile("pusha");
     1.8 +#define pop_regs() asm volatile("popa");
     1.9 +
    1.10  #define inb(dest, port) asm volatile( \
    1.11  	"inb %1, %0\n\t" \
    1.12  	: "=a" ((unsigned char)(dest)) \
    1.13 @@ -42,4 +45,5 @@
    1.14  
    1.15  #define iodelay() outb(0, 0x80)
    1.16  
    1.17 +
    1.18  #endif	/* ASMOPS_H_ */