xv6/asm.h File Reference

Go to the source code of this file.

Defines

#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


Define 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 9 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 19 of file asm.h.

#define STA_C   0x4

Definition at line 16 of file asm.h.

#define STA_E   0x4

Definition at line 15 of file asm.h.

#define STA_R   0x2

Definition at line 18 of file asm.h.

Referenced by ksegment(), and usegment().

#define STA_W   0x2

Definition at line 17 of file asm.h.

Referenced by ksegment(), and usegment().

#define STA_X   0x8

Definition at line 14 of file asm.h.

Referenced by ksegment(), and usegment().


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6