aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2017-03-06 02:14:29 +0100
committerRobin Krahl <robin.krahl@ireas.org>2017-03-06 02:14:29 +0100
commit9113c143c377876cc750e007e99f76c844bc95e8 (patch)
tree0c055d6fe57c713042e352284996eef6433737a7 /include
parent0041476a0f804db9266c54b8ce62a585e7b30890 (diff)
downloadgarmos-9113c143c377876cc750e007e99f76c844bc95e8.tar.gz
garmos-9113c143c377876cc750e007e99f76c844bc95e8.tar.bz2
gdt: move assembler code to arch
The assembler code to set the global descriptor table is architecture-specific and therefore moved to arch.{c,h}.
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