From 4b23988da8b2f03984340469dbda99cc450844f2 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Wed, 31 Aug 2022 18:09:32 -0400 Subject: [PATCH] Remove redundant CSysLimitBase code in zealbooter. --- zealbooter/zealbooter.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/zealbooter/zealbooter.c b/zealbooter/zealbooter.c index 3bff560c..b8b64de3 100644 --- a/zealbooter/zealbooter.c +++ b/zealbooter/zealbooter.c @@ -80,7 +80,7 @@ struct CGDT { struct CSysLimitBase { uint16_t limit; uint8_t *base; -}; +} __attribute__((packed)); struct CKernel { struct CZXE h; @@ -95,10 +95,7 @@ struct CKernel { uint16_t mem_E801[2]; struct CMemE820 mem_E820[MEM_E820_ENTRIES_NUM]; uint64_t mem_physical_space; - struct { - uint16_t limit; - uint8_t *base; - } __attribute__((packed)) sys_gdt_ptr; + struct CSysLimitBase sys_gdt_ptr; uint16_t sys_pci_buses; struct CGDT sys_gdt __attribute__((aligned(16))); uint64_t sys_framebuffer_addr;