aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/garmos/arch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/garmos/arch.h b/include/garmos/arch.h
index 0cee4c2..6d0f54d 100644
--- a/include/garmos/arch.h
+++ b/include/garmos/arch.h
@@ -37,4 +37,11 @@ void regset8(const uint32_t reg, const uint8_t val);
void regset16(const uint32_t reg, const uint16_t val);
void regset32(const uint32_t reg, const uint32_t val);
+/* global description table initialization */
+struct gdtp {
+ uint16_t limit;
+ void *pointer;
+} __attribute__((packed));
+void gdtset(struct gdtp gdtp);
+
#endif