Rev 1289 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1289 | Rev 1292 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | # include <typedefs.h> |
34 | # include <typedefs.h> |
35 | # include <arch/context.h> |
35 | # include <arch/context.h> |
36 | #endif |
36 | #endif |
37 | 37 | ||
38 | #define IDT_ITEMS 64 |
38 | #define IDT_ITEMS 64 |
39 | #define GDT_ITEMS 9 |
39 | #define GDT_ITEMS 8 |
40 | 40 | ||
41 | #define VESA_INIT_SEGMENT 0x8000 |
- | |
42 | 41 | ||
43 | #define NULL_DES 0 |
42 | #define NULL_DES 0 |
44 | /* Warning: Do not reorder next items, unless you look into syscall.c!!! */ |
43 | /* Warning: Do not reorder next items, unless you look into syscall.c!!! */ |
45 | #define KTEXT_DES 1 |
44 | #define KTEXT_DES 1 |
46 | #define KDATA_DES 2 |
45 | #define KDATA_DES 2 |
47 | #define UDATA_DES 3 |
46 | #define UDATA_DES 3 |
48 | #define UTEXT_DES 4 |
47 | #define UTEXT_DES 4 |
49 | #define KTEXT32_DES 5 |
48 | #define KTEXT32_DES 5 |
50 | /* EndOfWarning */ |
49 | /* EndOfWarning */ |
51 | #define TSS_DES 6 |
50 | #define TSS_DES 6 |
- | 51 | ||
- | 52 | ||
- | 53 | ||
- | 54 | #ifdef CONFIG_FB |
|
- | 55 | ||
52 | #define VESA_INIT_DES 8 |
56 | #define VESA_INIT_DES 8 |
- | 57 | #define VESA_INIT_SEGMENT 0x8000 |
|
- | 58 | #undef GDT_ITEMS |
|
- | 59 | #define GDT_ITEMS 9 |
|
- | 60 | ||
- | 61 | #endif /*CONFIG_FB*/ |
|
- | 62 | ||
- | 63 | ||
53 | 64 | ||
54 | #define gdtselector(des) ((des)<<3) |
65 | #define gdtselector(des) ((des)<<3) |
55 | #define idtselector(des) ((des)<<4) |
66 | #define idtselector(des) ((des)<<4) |
56 | 67 | ||
57 | #define PL_KERNEL 0 |
68 | #define PL_KERNEL 0 |