lim 11 asm.h #define SEG_ASM(type,base,lim) \ lim 12 asm.h .word (((lim) >> 12) & 0xffff), ((base) & 0xffff); \ lim 14 asm.h (0xC0 | (((lim) >> 28) & 0xf)), (((base) >> 24) & 0xff) lim 43 mmu.h #define SEG(type, base, lim, dpl) (struct segdesc) \ lim 44 mmu.h { ((lim) >> 12) & 0xffff, (uint)(base) & 0xffff, \ lim 46 mmu.h (uint)(lim) >> 28, 0, 0, 1, 1, (uint)(base) >> 24 } lim 47 mmu.h #define SEG16(type, base, lim, dpl) (struct segdesc) \ lim 48 mmu.h { (lim) & 0xffff, (uint)(base) & 0xffff, \ lim 50 mmu.h (uint)(lim) >> 16, 0, 0, 1, 0, (uint)(base) >> 24 }