diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-24 11:30:07 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-24 11:30:07 -0400 |
commit | a6a8129c151dc0e3a070c74161e117ec1365c099 (patch) | |
tree | 079531134ee3f685d861f4c55e8e15f70fe09905 /kernel/cpu/tss.h | |
parent | update paging code (diff) | |
download | comus-a6a8129c151dc0e3a070c74161e117ec1365c099.tar.gz comus-a6a8129c151dc0e3a070c74161e117ec1365c099.tar.bz2 comus-a6a8129c151dc0e3a070c74161e117ec1365c099.zip |
add tss
Diffstat (limited to '')
-rw-r--r-- | kernel/cpu/tss.h | 31 |
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 */ |