diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-03 15:22:30 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-03 15:22:30 +0100 |
commit | 9c4310651a91e64c10a17f3190c895a49096aeb1 (patch) | |
tree | af87d115512249458f80f184d53db403c3f0bb0f /src/stem/mem/gdt.h | |
parent | 7f72a900c12ba62db12df0872cb66f79a27aa9d9 (diff) | |
download | TCE-9c4310651a91e64c10a17f3190c895a49096aeb1.tar.gz TCE-9c4310651a91e64c10a17f3190c895a49096aeb1.zip |
Reogranization
Diffstat (limited to 'src/stem/mem/gdt.h')
-rw-r--r-- | src/stem/mem/gdt.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/stem/mem/gdt.h b/src/stem/mem/gdt.h new file mode 100644 index 0000000..aac16bb --- /dev/null +++ b/src/stem/mem/gdt.h @@ -0,0 +1,23 @@ +#ifndef DEF_GDT_H +#define DEF_GDT_H + +#include <types.h> + +struct gdt_entry { + uint16_t limit_low; + uint16_t base_low; + uint8_t base_middle; + uint8_t access; + uint8_t granularity; + uint8_t base_high; +} __attribute__((packed)); + +struct gdt_ptr { + uint16_t limit; + uint32_t base; +} __attribute__((packed)); + +void gdt_init(); + +#endif + |