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 69 mmu.h #define SEG(type, base, lim, dpl) (struct segdesc) \ lim 70 mmu.h { ((lim) >> 12) & 0xffff, (uint)(base) & 0xffff, \ lim 72 mmu.h (uint)(lim) >> 28, 0, 0, 1, 1, (uint)(base) >> 24 } lim 73 mmu.h #define SEG16(type, base, lim, dpl) (struct segdesc) \ lim 74 mmu.h { (lim) & 0xffff, (uint)(base) & 0xffff, \ lim 76 mmu.h (uint)(lim) >> 16, 0, 0, 1, 0, (uint)(base) >> 24 }