summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/GDT.ns.h
blob: 7a9f95fec5ba9357e7e29a8ab9382e7341bcf835 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef DEF_GDT_NS_H
#define DEF_GDT_NS_H

#include <Core/common.wtf.h>

namespace GDT {
	struct gdt_entry_t {
		u16int limit_low;
		u16int base_low;
		u8int base_middle;
		u8int access;
		u8int granularity;
		u8int base_high;
	} __attribute__((packed));

	struct gdt_ptr_t {
		u16int limit;
		u32int base;
	} __attribute__((packed));

	void init();
}

#endif