UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
asm.h File Reference

Go to the source code of this file.

Macros

#define SEG_NULLASM
 
#define SEG_ASM(type, base, lim)
 
#define STA_X   0x8
 
#define STA_E   0x4
 
#define STA_C   0x4
 
#define STA_W   0x2
 
#define STA_R   0x2
 
#define STA_A   0x1
 

Macro Definition Documentation

#define SEG_ASM (   type,
  base,
  lim 
)
Value:
.word (((lim) >> 12) & 0xffff), ((base) & 0xffff); \
.byte (((base) >> 16) & 0xff), (0x90 | (type)), \
(0xC0 | (((lim) >> 28) & 0xf)), (((base) >> 24) & 0xff)

Definition at line 11 of file asm.h.

#define SEG_NULLASM
Value:
.word 0, 0; \
.byte 0, 0, 0, 0

Definition at line 5 of file asm.h.

#define STA_A   0x1

Definition at line 21 of file asm.h.

#define STA_C   0x4

Definition at line 18 of file asm.h.

#define STA_E   0x4

Definition at line 17 of file asm.h.

#define STA_R   0x2

Definition at line 20 of file asm.h.

#define STA_W   0x2

Definition at line 19 of file asm.h.

#define STA_X   0x8

Definition at line 16 of file asm.h.