40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
#pragma once
|
|
|
|
/* How many bytes from the start of the file we search for the header. */
|
|
#define MULTIBOOT_SEARCH 32768
|
|
#define MULTIBOOT_HEADER_ALIGN 8
|
|
|
|
/* The magic field should contain this. */
|
|
#define MULTIBOOT2_HEADER_MAGIC 0xe85250d6
|
|
|
|
/* Alignment of multiboot modules. */
|
|
#define MULTIBOOT_MOD_ALIGN 0x00001000
|
|
|
|
/* Alignment of the multiboot info structure. */
|
|
#define MULTIBOOT_INFO_ALIGN 0x00000008
|
|
|
|
|
|
#define MULTIBOOT_HEADER_TAG_END 0
|
|
#define MULTIBOOT_HEADER_TAG_INFORMATION_REQUEST 1
|
|
#define MULTIBOOT_HEADER_TAG_ADDRESS 2
|
|
#define MULTIBOOT_HEADER_TAG_ENTRY_ADDRESS 3
|
|
#define MULTIBOOT_HEADER_TAG_CONSOLE_FLAGS 4
|
|
#define MULTIBOOT_HEADER_TAG_FRAMEBUFFER 5
|
|
#define MULTIBOOT_HEADER_TAG_MODULE_ALIGN 6
|
|
#define MULTIBOOT_HEADER_TAG_EFI_BS 7
|
|
#define MULTIBOOT_HEADER_TAG_ENTRY_ADDRESS_EFI32 8
|
|
#define MULTIBOOT_HEADER_TAG_ENTRY_ADDRESS_EFI64 9
|
|
#define MULTIBOOT_HEADER_TAG_RELOCATABLE 10
|
|
|
|
#define MULTIBOOT_ARCHITECTURE_I386 0
|
|
#define MULTIBOOT_ARCHITECTURE_MIPS32 4
|
|
#define MULTIBOOT_HEADER_TAG_OPTIONAL 1
|
|
|
|
#define MULTIBOOT_LOAD_PREFERENCE_NONE 0
|
|
#define MULTIBOOT_LOAD_PREFERENCE_LOW 1
|
|
#define MULTIBOOT_LOAD_PREFERENCE_HIGH 2
|
|
|
|
#define MULTIBOOT_CONSOLE_FLAGS_CONSOLE_REQUIRED 1
|
|
#define MULTIBOOT_CONSOLE_FLAGS_EGA_TEXT_SUPPORTED 2
|
|
|