diff options
author | Marvin Borner | 2021-05-03 00:01:49 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-03 00:01:49 +0200 |
commit | 975dc11bbf2edfd7f30f98c17f593058368a30c0 (patch) | |
tree | b0a7cadce8edb943f535687785afd2880dbfcccb /kernel/drivers | |
parent | 7e55005dda411b5adafb985e485e3756969f6ac0 (diff) |
PURE
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/gdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/gdt.c b/kernel/drivers/gdt.c index 693f25f..3e7da94 100644 --- a/kernel/drivers/gdt.c +++ b/kernel/drivers/gdt.c @@ -21,7 +21,7 @@ static struct tss_entry tss = { 0 }; PROTECTED static struct gdt_ptr gp = { 0 }; -CONST u8 gdt_offset(u8 gate) +u8 gdt_offset(u8 gate) { assert(gate && gate < COUNT(gdt)); return ((u32)&gdt[gate] - (u32)gdt) & 0xff; |