aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/gdt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/gdt.c b/core/gdt.c
index 708e2c5..b59bf9e 100644
--- a/core/gdt.c
+++ b/core/gdt.c
@@ -74,3 +74,8 @@ void gdt_init(void)
gdtset(gdtp);
}
+
+uint16_t gdt_get_code_offset(void)
+{
+ return GDT_SGMT_CODE * sizeof(*gdt);
+}