]>
git.saurik.com Git - apple/xnu.git/blob - bsd/dev/arm/table_inline.h
f5996137d3f8dcd8170138af34918a21117e9ce0
2 * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
5 * Copyright (c) 1992 NeXT Computer, Inc.
7 * Intel386 Family: Selector based access to descriptor tables.
11 * 2 April 1992 ? at NeXT
15 #include <architecture/i386/table.h>
17 #include <machdep/i386/gdt.h>
18 #include <machdep/i386/idt.h>
20 static inline gdt_entry_t
*
21 sel_to_gdt_entry(sel_t sel
)
23 return &gdt
[sel
.index
];
26 static inline idt_entry_t
*
27 sel_to_idt_entry(sel_t sel
)
29 return &idt
[sel
.index
];
32 static inline ldt_entry_t
*
33 sel_to_ldt_entry(ldt_t
*tbl
, sel_t sel
)
35 return &tbl
[sel
.index
];