From d00e6a08ededb16e5d075ce28d7d797763e25c55 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 11 May 2020 19:14:20 +0200 Subject: Some very small fixes in several files --- src/kernel/gdt/gdt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/kernel/gdt/gdt.c') 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; } -- cgit v1.2.3