aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2017-03-05 22:37:54 +0100
committerRobin Krahl <robin.krahl@ireas.org>2017-03-05 22:51:36 +0100
commitf01e48444829cce9eec25f4562778da0ed4ae66c (patch)
tree7ccf320bd4fb611c989f21f679ad5eed7b77c409 /include
parentd42b629d983de336ddd3c22782caa2791ab78897 (diff)
downloadgarmos-f01e48444829cce9eec25f4562778da0ed4ae66c.tar.gz
garmos-f01e48444829cce9eec25f4562778da0ed4ae66c.tar.bz2
gdt: add simple gdt implementation
Add a simple Global Descriptor Table implementation based on [0]. [0] http://www.lowlevel.eu/wiki/Global_Descriptor_Table
Diffstat (limited to 'include')
-rw-r--r--include/garmos/gdt.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/garmos/gdt.h b/include/garmos/gdt.h
new file mode 100644
index 0000000..b49f42d
--- /dev/null
+++ b/include/garmos/gdt.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2017 Robin Krahl <robin.krahl@ireas.org>
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation, either version 3 of the License, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ */
+
+#ifndef GARMOS_GDT_H
+#define GARMOS_GDT_H
+
+#include <garmos/types.h>
+
+void gdt_init(void);
+
+#endif