initial commit
This commit is contained in:
17
multiboot.h
Normal file
17
multiboot.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* multiboot.h */
|
||||
#ifndef MULTIBOOT_H
|
||||
#define MULTIBOOT_H
|
||||
|
||||
#define MULTIBOOT_HEADER_MAGIC 0x1BADB002
|
||||
#define MULTIBOOT_HEADER_FLAGS 0x00010003 // Set flags as needed
|
||||
#define MULTIBOOT_HEADER_CHECKSUM -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
|
||||
|
||||
// Place the multiboot header in a dedicated section so that the bootloader can find it.
|
||||
__attribute__((section(".multiboot")))
|
||||
const unsigned int multiboot_header[3] = {
|
||||
MULTIBOOT_HEADER_MAGIC,
|
||||
MULTIBOOT_HEADER_FLAGS,
|
||||
MULTIBOOT_HEADER_CHECKSUM
|
||||
};
|
||||
|
||||
#endif // MULTIBOOT_H
|
||||
Reference in New Issue
Block a user