mirror of https://github.com/tailix/kernel.git
Use const "KERNAUX_MULTIBOOT2_MAGIC"
This commit is contained in:
parent
332817eda1
commit
00d87075cf
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include "info.h"
|
||||
|
||||
#define MULTIBOOT_MAGIC 0x36d76289
|
||||
|
||||
unsigned char multiboot_parse(struct KernelMQ_Info *kinfo, unsigned long base);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue