From 0ec9e9824e32d3d54d2ad43c3f2743d52127aa92 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Tue, 28 Sep 2021 09:05:17 -0500 Subject: arch: i386: fix GDT segment mismatch Fix a bug in which the size of the main GDT array and the actual number of descriptors are different values. Signed-off-by: Danny Holman --- arch/i386/boot/gdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/i386/boot') diff --git a/arch/i386/boot/gdt.c b/arch/i386/boot/gdt.c index 8be5563..d7873cc 100644 --- a/arch/i386/boot/gdt.c +++ b/arch/i386/boot/gdt.c @@ -68,7 +68,7 @@ uint64_t create_gdt_entry(uint32_t base, uint32_t limit, uint16_t flag) { } void gdt_install(void) { - gp.limit = 64 * 3 - 1; + gp.limit = 64 * 5 - 1; gp.base = (uint32_t)&desc; desc[0] = create_gdt_entry(0, 0, 0); -- cgit v1.2.3