From f2c19bd4c46e09c8cbc34b423bfc6aa5a3b2372c Mon Sep 17 00:00:00 2001 From: ngiddings Date: Mon, 12 Apr 2021 15:28:37 -0500 Subject: [PATCH] Turned module_limit into a macro --- src/x86/quark_x86.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/x86/quark_x86.c b/src/x86/quark_x86.c index 6f50f1f..84f1c55 100644 --- a/src/x86/quark_x86.c +++ b/src/x86/quark_x86.c @@ -7,6 +7,8 @@ #include #include +#define module_limit 8 + enum isr_type_t { INTERRPUT_TASK32 = 5, @@ -99,8 +101,6 @@ struct multiboot2_memory_map_t struct multiboot2_map_entry_t entries; }; -const size_t module_limit = 8; - struct boot_info_t { char *bootloader; @@ -158,7 +158,7 @@ void *read_multiboot_table(struct boot_info_t *boot_info, void *table) { case MB_END_TAG: return NULL; - case MB_MEMORY_MAP: + case MB_MEMORY_MAP: ; unsigned int tag_size = ((struct multiboot2_memory_map_t*) table)->size - 16; unsigned int entry_size = ((struct multiboot2_memory_map_t*) table)->entry_size; struct multiboot2_map_entry_t *entry = &((struct multiboot2_memory_map_t*) table)->entries;