diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/gdt.c | 5 |
1 files changed, 5 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); +} |
index : garmos | ||
simple operating system | Robin Krahl |
aboutsummaryrefslogtreecommitdiff |
-rw-r--r-- | core/gdt.c | 5 |
@@ -74,3 +74,8 @@ void gdt_init(void) gdtset(gdtp); } + +uint16_t gdt_get_code_offset(void) +{ + return GDT_SGMT_CODE * sizeof(*gdt); +} |