diff options
-rw-r--r-- | core/gdt.c | 5 | ||||
-rw-r--r-- | include/garmos/gdt.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -74,3 +74,8 @@ void gdt_init(void) gdtset(gdtp); } + +uint16_t gdt_get_code_offset(void) +{ + return GDT_SGMT_CODE * sizeof(*gdt); +} diff --git a/include/garmos/gdt.h b/include/garmos/gdt.h index b49f42d..d353437 100644 --- a/include/garmos/gdt.h +++ b/include/garmos/gdt.h @@ -18,5 +18,6 @@ #include <garmos/types.h> void gdt_init(void); +uint16_t gdt_get_code_offset(void); #endif |