From cbd21ced3990a30997d438811d0dfc9bcdd1307e Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 1 Feb 2023 22:38:36 +0100 Subject: [PATCH] Use a size of the structure, not a pointer --- xtoskrnl/ar/amd64/procsup.c | 4 ++-- xtoskrnl/ar/i686/procsup.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xtoskrnl/ar/amd64/procsup.c b/xtoskrnl/ar/amd64/procsup.c index bc653f3..ad9ef16 100644 --- a/xtoskrnl/ar/amd64/procsup.c +++ b/xtoskrnl/ar/amd64/procsup.c @@ -44,9 +44,9 @@ ArInitializeProcessor(VOID) /* Set GDT and IDT descriptors */ GdtDescriptor.Base = Gdt; - GdtDescriptor.Limit = (GDT_ENTRIES * sizeof(PKGDTENTRY)) - 1; + GdtDescriptor.Limit = (GDT_ENTRIES * sizeof(KGDTENTRY)) - 1; IdtDescriptor.Base = Idt; - IdtDescriptor.Limit = (IDT_ENTRIES * sizeof(PKIDTENTRY)) - 1; + IdtDescriptor.Limit = (IDT_ENTRIES * sizeof(KIDTENTRY)) - 1; /* Load GDT, IDT and TSS */ ArLoadGlobalDescriptorTable(&GdtDescriptor.Limit); diff --git a/xtoskrnl/ar/i686/procsup.c b/xtoskrnl/ar/i686/procsup.c index 26e6775..d7f2fe8 100644 --- a/xtoskrnl/ar/i686/procsup.c +++ b/xtoskrnl/ar/i686/procsup.c @@ -44,9 +44,9 @@ ArInitializeProcessor(VOID) /* Set GDT and IDT descriptors */ GdtDescriptor.Base = Gdt; - GdtDescriptor.Limit = (GDT_ENTRIES * sizeof(PKGDTENTRY)) - 1; + GdtDescriptor.Limit = (GDT_ENTRIES * sizeof(KGDTENTRY)) - 1; IdtDescriptor.Base = Idt; - IdtDescriptor.Limit = (IDT_ENTRIES * sizeof(PKIDTENTRY)) - 1; + IdtDescriptor.Limit = (IDT_ENTRIES * sizeof(KIDTENTRY)) - 1; /* Load GDT, IDT and TSS */ ArLoadGlobalDescriptorTable(&GdtDescriptor.Limit);