17 lines
550 B
C
17 lines
550 B
C
/* 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
|