UbixOS  2.0
wait.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  semaphore
 
struct  wait_queue
 

Macros

#define cli()   __asm__ __volatile__ ("cli": : :"memory")
 
#define nop()   __asm__ __volatile__ ("nop")
 
#define restore_flags(x)   __asm__ __volatile__("pushl %0 ; popfl": /* no output */ :"r" (x):"memory")
 
#define save_flags(x)   __asm__ __volatile__("pushfl ; popl %0":"=r" (x): /* no input */ :"memory")
 
#define sti()   __asm__ __volatile__ ("sti": : :"memory")
 

Macro Definition Documentation

◆ cli

#define cli ( )    __asm__ __volatile__ ("cli": : :"memory")

Definition at line 45 of file wait.h.

◆ nop

#define nop ( )    __asm__ __volatile__ ("nop")

Definition at line 46 of file wait.h.

◆ restore_flags

#define restore_flags (   x)    __asm__ __volatile__("pushl %0 ; popfl": /* no output */ :"r" (x):"memory")

Definition at line 50 of file wait.h.

◆ save_flags

#define save_flags (   x)    __asm__ __volatile__("pushfl ; popl %0":"=r" (x): /* no input */ :"memory")

Definition at line 48 of file wait.h.

◆ sti

#define sti ( )    __asm__ __volatile__ ("sti": : :"memory")

Definition at line 44 of file wait.h.