aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/gdt/gdt.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-11 19:14:20 +0200
committerMarvin Borner2020-05-11 19:14:20 +0200
commitd00e6a08ededb16e5d075ce28d7d797763e25c55 (patch)
tree1ab924d955056c342d21e1632251c4899bf8f11c /src/kernel/gdt/gdt.c
parent6abd515c051b6dcb545e1033ff129aaaf7293917 (diff)
Some very small fixes in several files
Diffstat (limited to 'src/kernel/gdt/gdt.c')
-rw-r--r--src/kernel/gdt/gdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/gdt/gdt.c b/src/kernel/gdt/gdt.c
index 79a52a4..4f98056 100644
--- a/src/kernel/gdt/gdt.c
+++ b/src/kernel/gdt/gdt.c
@@ -61,12 +61,10 @@ void gdt_set_gate(s32 num, u32 base, u32 limit, u8 access, u8 gran)
gdt[num].base_low = (u16)(base & 0xFFFF);
gdt[num].base_middle = (u8)((base >> 16) & 0xFF);
gdt[num].base_high = (u8)((base >> 24) & 0xFF);
-
- // Set descriptor limits
gdt[num].limit_low = (u16)(limit & 0xFFFF);
- gdt[num].granularity = (u8)((limit >> 16) & 0x0F);
// Set granularity and access flags
+ gdt[num].granularity = (u8)((limit >> 16) & 0x0F);
gdt[num].granularity |= (gran & 0xF0);
gdt[num].access = access;
}