5 #include <minix/sys_config.h>
6 #include <machine/stackframe.h>
7 #include <machine/fpu.h>
10 struct segdesc_s
{ /* segment descriptor for protected mode */
14 u8_t access
; /* |P|DL|1|X|E|R|A| */
15 u8_t granularity
; /* |G|X|0|A|LIMT| */
17 } __attribute__((packed
));
22 u8_t pad
; /* |000|XXXXX| ig & trpg, |XXXXXXXX| task g */
23 u8_t p_dpl_type
; /* |P|DL|0|TYPE| */
25 } __attribute__((packed
));
27 struct desctableptr_s
{
30 } __attribute__((packed
));
32 typedef struct segframe
{
33 reg_t p_cr3
; /* page table root */
36 int p_kern_trap_style
;
44 u32_t freq
; /* in MHz */
48 typedef u32_t atomic_t
; /* access to an aligned 32bit value is atomic on i386 */
50 #endif /* #ifndef _I386_TYPES_H */