summaryrefslogtreecommitdiff
path: root/kernel/cpu/tss.h
diff options
context:
space:
mode:
authorGalen Sagarin <gps5307@rit.edu>2025-04-29 14:18:40 -0400
committerGalen Sagarin <gps5307@rit.edu>2025-04-29 14:18:40 -0400
commitae2cdd83ba4a0cae161db0b29031d5591005fa34 (patch)
tree82fbdfcbb1fe4e3b5e232db195c8c331d69489fd /kernel/cpu/tss.h
parentStarted writing fat.c (diff)
parentfs header changes (diff)
downloadcomus-ae2cdd83ba4a0cae161db0b29031d5591005fa34.tar.gz
comus-ae2cdd83ba4a0cae161db0b29031d5591005fa34.tar.bz2
comus-ae2cdd83ba4a0cae161db0b29031d5591005fa34.zip
Merge branch 'main' of https://github.com/kenshineto/kern into fat32
Merging main into here
Diffstat (limited to 'kernel/cpu/tss.h')
-rw-r--r--kernel/cpu/tss.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/kernel/cpu/tss.h b/kernel/cpu/tss.h
new file mode 100644
index 0000000..f17b619
--- /dev/null
+++ b/kernel/cpu/tss.h
@@ -0,0 +1,31 @@
+/**
+ * @file tss.h
+ *
+ * @author Freya Murphy <freya@freyacat.org>
+ *
+ * TSS functions
+ */
+
+#ifndef TSS_H_
+#define TSS_H_
+
+#define TSS_REMAP_OFFSET 0x20
+
+#include <stdint.h>
+
+/**
+ * Load the TSS selector
+ */
+void tss_init(void);
+
+/**
+ * Flush the tss
+ */
+void tss_flush(void);
+
+/**
+ * Set the kernel stack pointer in the tss
+ */
+void tss_set_stack(uint64_t stack);
+
+#endif /* tss.h */