Use const "KERNAUX_MULTIBOOT2_MAGIC"

This commit is contained in:
Alex Kotov 2020-11-28 05:19:36 +05:00
parent 332817eda1
commit 00d87075cf
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 3 additions and 3 deletions

View File

@ -14,6 +14,8 @@
#include "elf.h"
#include "logger.h"
#include <kernaux/multiboot2.h>
// Defined in linker script
extern char _kernel_offset;
extern char _kernel_size;
@ -27,7 +29,7 @@ static KernelMQ_Process_List process_list;
void main(unsigned long multiboot_magic, unsigned long multiboot_info_base)
{
if (multiboot_magic != MULTIBOOT_MAGIC) {
if (multiboot_magic != KERNAUX_MULTIBOOT2_MAGIC) {
panic("Multiboot 2 magic number is invalid.");
}

View File

@ -3,8 +3,6 @@
#include "info.h"
#define MULTIBOOT_MAGIC 0x36d76289
unsigned char multiboot_parse(struct KernelMQ_Info *kinfo, unsigned long base);
#endif