diff options
| author | manuel <manuel@mausz.at> | 2012-03-27 11:51:08 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-03-27 11:51:08 +0200 |
| commit | 4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b (patch) | |
| tree | 868c52e06f207b5ec8a3cc141f4b8b2bdfcc165c /userprog/gdt.h | |
| parent | eae0bd57f0a26314a94785061888d193d186944a (diff) | |
| download | progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.gz progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.bz2 progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.zip | |
reorganize file structure to match the upstream requirements
Diffstat (limited to 'userprog/gdt.h')
| -rw-r--r-- | userprog/gdt.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/userprog/gdt.h b/userprog/gdt.h new file mode 100644 index 0000000..81fe50c --- /dev/null +++ b/userprog/gdt.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef USERPROG_GDT_H | ||
| 2 | #define USERPROG_GDT_H | ||
| 3 | |||
| 4 | #include "threads/loader.h" | ||
| 5 | |||
| 6 | /* Segment selectors. | ||
| 7 | More selectors are defined by the loader in loader.h. */ | ||
| 8 | #define SEL_UCSEG 0x1B /* User code selector. */ | ||
| 9 | #define SEL_UDSEG 0x23 /* User data selector. */ | ||
| 10 | #define SEL_TSS 0x28 /* Task-state segment. */ | ||
| 11 | #define SEL_CNT 6 /* Number of segments. */ | ||
| 12 | |||
| 13 | void gdt_init (void); | ||
| 14 | |||
| 15 | #endif /* userprog/gdt.h */ | ||
