From f0c751e9627fa7e73b2259b6d6c94736b35e4547 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Thu, 8 Sep 2022 19:12:56 -0400 Subject: [PATCH] Print CKernel sys_gdt_ptr values in zealbooter. --- zealbooter/zealbooter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zealbooter/zealbooter.c b/zealbooter/zealbooter.c index 5f824811..276b0936 100644 --- a/zealbooter/zealbooter.c +++ b/zealbooter/zealbooter.c @@ -229,6 +229,9 @@ void _start(void) { kernel->sys_gdt_ptr.base = (void *)&kernel->sys_gdt - (uintptr_t)module_kernel->address; kernel->sys_gdt_ptr.base += final_address; + printf("kernel->sys_gdt_ptr.limit: 0x%X\n", kernel->sys_gdt_ptr.limit); + printf("kernel->sys_gdt_ptr.base: 0x%X\n", kernel->sys_gdt_ptr.base); + kernel->sys_pci_buses = 256; struct E801 E801 = get_E801();