From f980acc1367821a03a8878d096bd56473a6ebfff Mon Sep 17 00:00:00 2001 From: Curle Date: Mon, 19 Aug 2019 23:02:48 +0100 Subject: [PATCH] Fix a small bug in the GDT sections that can cause a halt in the kernel.. --- kernel/bootstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bootstrap.c b/kernel/bootstrap.c index 3f26d96..7592c83 100644 --- a/kernel/bootstrap.c +++ b/kernel/bootstrap.c @@ -780,7 +780,7 @@ void InstallGDT() { uint16_t TSSBase1 = (uint16_t)TSS64Address; uint8_t TSSBase2 = (uint8_t)(TSS64Address >> 16); uint8_t TSSBase3 = (uint8_t)(TSS64Address >> 24); - uint32_t TSSBase4 = (uint8_t)(TSS64Address >> 32); + uint32_t TSSBase4 = (uint32_t)(TSS64Address >> 32); GDTData.Limit = sizeof(InitialGDT) - 1; GDTData.BaseAddress = (size_t)InitialGDT;