Go to the documentation of this file.
29 #ifndef _UBIXOS_WAIT_H
30 #define _UBIXOS_WAIT_H
44 #define sti() __asm__ __volatile__ ("sti": : :"memory")
45 #define cli() __asm__ __volatile__ ("cli": : :"memory")
46 #define nop() __asm__ __volatile__ ("nop")
48 #define save_flags(x) __asm__ __volatile__("pushfl ; popl %0":"=r" (x): :"memory")
50 #define restore_flags(x) __asm__ __volatile__("pushl %0 ; popfl": :"r" (x):"memory")