Rev 693 | Rev 1184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 693 | Rev 1112 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #ifndef __PM_H__ |
29 | #ifndef __PM_H__ |
30 | #define __PM_H__ |
30 | #define __PM_H__ |
31 | 31 | ||
32 | #define IDT_ITEMS 64 |
32 | #define IDT_ITEMS 64 |
33 | #define GDT_ITEMS 6 |
33 | #define GDT_ITEMS 7 |
34 | 34 | ||
35 | #define NULL_DES 0 |
35 | #define NULL_DES 0 |
36 | #define KTEXT_DES 1 |
36 | #define KTEXT_DES 1 |
37 | #define KDATA_DES 2 |
37 | #define KDATA_DES 2 |
38 | #define UTEXT_DES 3 |
38 | #define UTEXT_DES 3 |
39 | #define UDATA_DES 4 |
39 | #define UDATA_DES 4 |
40 | #define TSS_DES 5 |
40 | #define TSS_DES 5 |
- | 41 | #define TLS_DES 6 /* Pointer to Thread-Local-Storage data */ |
|
41 | 42 | ||
42 | #define selector(des) ((des)<<3) |
43 | #define selector(des) ((des)<<3) |
43 | 44 | ||
44 | #define PL_KERNEL 0 |
45 | #define PL_KERNEL 0 |
45 | #define PL_USER 3 |
46 | #define PL_USER 3 |
Line 144... | Line 145... | ||
144 | 145 | ||
145 | extern void idt_init(void); |
146 | extern void idt_init(void); |
146 | extern void idt_setoffset(struct idescriptor *d, __address offset); |
147 | extern void idt_setoffset(struct idescriptor *d, __address offset); |
147 | 148 | ||
148 | extern void tss_initialize(struct tss *t); |
149 | extern void tss_initialize(struct tss *t); |
- | 150 | extern void set_tls_desc(__address tls); |
|
149 | 151 | ||
150 | #endif /* __ASM__ */ |
152 | #endif /* __ASM__ */ |
151 | 153 | ||
152 | #endif |
154 | #endif |