aboutsummaryrefslogtreecommitdiff
path: root/include/03.gdt/gdt5.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/03.gdt/gdt5.c')
-rw-r--r--include/03.gdt/gdt5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/03.gdt/gdt5.c b/include/03.gdt/gdt5.c
new file mode 100644
index 0000000..c41ef42
--- /dev/null
+++ b/include/03.gdt/gdt5.c
@@ -0,0 +1,4 @@
+void init_gdt_table(void)
+{
+ gdtp.size=sizeof(gdt)-1;
+ gdtp.offset=(uint32_t)&gdt;