2022-06-12 06:25:10 -04:00
|
|
|
#ifdef __TINYC__
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
#endif
|
|
|
|
|
2020-11-29 15:08:44 -05:00
|
|
|
static const struct {
|
2022-01-12 22:59:52 -05:00
|
|
|
struct KernAux_Multiboot2_Info multiboot2_info;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_BootCmdLine tag;
|
2020-11-29 15:08:44 -05:00
|
|
|
char cmdline[15];
|
|
|
|
} tag_boot_cmd_line;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align1[1];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_BootLoaderName tag;
|
2020-11-29 15:08:44 -05:00
|
|
|
char name[22];
|
|
|
|
} tag_boot_loader_name;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align2[2];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_Module tag;
|
2020-11-29 15:08:44 -05:00
|
|
|
char cmdline[17];
|
|
|
|
} tag_module1;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align3[7];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_Module tag;
|
2020-11-29 15:08:44 -05:00
|
|
|
char cmdline[17];
|
|
|
|
} tag_module2;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align4[7];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_BasicMemoryInfo tag_basic_memory_info;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_BIOSBootDevice tag_bios_boot_device;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align5[4];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_MemoryMap tag;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[160 - sizeof(struct KernAux_Multiboot2_ITag_MemoryMap)];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_memory_map;
|
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_VBEInfo tag_vbe_info;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_FramebufferInfo tag;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[8];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_framebuffer_info;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align6[1];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_ELFSymbols tag;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[420 - sizeof(struct KernAux_Multiboot2_ITag_ELFSymbols)];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_elf_symbols;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align7[4];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_APMTable tag_apm_table;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align8[4];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-13 23:49:28 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_EFI32bitSystemTablePtr
|
|
|
|
tag_efi_32bit_system_table_ptr;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align9[4];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-13 23:49:28 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_EFI64bitSystemTablePtr
|
|
|
|
tag_efi_64bit_system_table_ptr;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_SMBIOSTables tag;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[8];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_smbios_tables;
|
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_ACPIOldRSDP tag;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[8];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_acpi_old_rsdp;
|
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_ACPINewRSDP tag;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[8];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_acpi_new_rsdp;
|
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_NetworkingInfo tag;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[8];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_networking_info;
|
|
|
|
|
|
|
|
struct {
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_EFIMemoryMap tag;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t data[8];
|
2020-11-29 15:08:44 -05:00
|
|
|
} tag_efi_memory_map;
|
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_EFIBootServicesNotTerminated
|
2022-01-13 23:49:28 -05:00
|
|
|
tag_efi_boot_services_not_terminated;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_EFI32bitImageHandlePtr
|
2022-01-13 23:49:28 -05:00
|
|
|
tag_efi_32bit_image_handle_ptr;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align10[4];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_EFI64bitImageHandlePtr
|
2022-01-13 23:49:28 -05:00
|
|
|
tag_efi_64bit_image_handle_ptr;
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_ImageLoadBasePhysAddr
|
2022-01-13 23:49:28 -05:00
|
|
|
tag_image_load_base_phys_addr;
|
2022-01-13 23:21:02 -05:00
|
|
|
uint8_t _align11[4];
|
2020-11-29 15:08:44 -05:00
|
|
|
|
2022-01-12 22:38:51 -05:00
|
|
|
struct KernAux_Multiboot2_ITag_None tag_none;
|
2022-01-12 23:05:34 -05:00
|
|
|
} multiboot2_info_example2 = {
|
2022-01-12 22:59:52 -05:00
|
|
|
.multiboot2_info = {
|
2022-01-12 23:05:34 -05:00
|
|
|
.total_size = sizeof(multiboot2_info_example2),
|
2020-11-29 15:08:44 -05:00
|
|
|
.reserved1 = 0,
|
|
|
|
},
|
|
|
|
.tag_boot_cmd_line = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_BOOT_CMD_LINE,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_boot_cmd_line),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.cmdline = "Hello, Kernel!\0",
|
|
|
|
},
|
|
|
|
.tag_boot_loader_name = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_BOOT_LOADER_NAME,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_boot_loader_name),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.name = "GRUB 2.02-2ubuntu8.20\0",
|
|
|
|
},
|
|
|
|
.tag_module1 = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_MODULE,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_module1),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.mod_start = 123,
|
|
|
|
.mod_end = 456,
|
|
|
|
},
|
|
|
|
.cmdline = "Hello, Module 1!\0",
|
|
|
|
},
|
|
|
|
.tag_module2 = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_MODULE,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_module2),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.mod_start = 123,
|
|
|
|
.mod_end = 456,
|
|
|
|
},
|
|
|
|
.cmdline = "Hello, Module 2!\0",
|
|
|
|
},
|
|
|
|
.tag_basic_memory_info = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_BASIC_MEMORY_INFO,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_basic_memory_info),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.mem_lower = 123,
|
|
|
|
.mem_upper = 456,
|
|
|
|
},
|
|
|
|
.tag_bios_boot_device = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_BIOS_BOOT_DEVICE,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_bios_boot_device),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.bios_dev = 0,
|
|
|
|
.partition = 1,
|
|
|
|
.sub_partition = 2,
|
|
|
|
},
|
|
|
|
.tag_memory_map = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_MEMORY_MAP,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_memory_map),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.entry_size = 24,
|
|
|
|
.entry_version = 0,
|
|
|
|
},
|
|
|
|
.data = {
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 252, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 252, 9, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0,
|
|
|
|
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 238, 7, 0, 0, 0, 0,
|
|
|
|
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 7, 0, 0, 0, 0,
|
|
|
|
0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 252, 255, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0,
|
|
|
|
2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
.tag_vbe_info = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_VBE_INFO,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_vbe_info),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.vbe_mode = 0,
|
|
|
|
.vbe_interface_seg = 123,
|
|
|
|
.vbe_interface_off = 456,
|
|
|
|
.vbe_interface_len = 789,
|
|
|
|
},
|
|
|
|
.tag_framebuffer_info = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_FRAMEBUFFER_INFO,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_framebuffer_info),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.framebuffer_addr = 123,
|
|
|
|
.framebuffer_pitch = 456,
|
|
|
|
.framebuffer_width = 123,
|
|
|
|
.framebuffer_height = 456,
|
|
|
|
.framebuffer_bpp = 8,
|
|
|
|
.framebuffer_type = 1,
|
|
|
|
},
|
|
|
|
.data = {0, 1, 2, 3, 4, 5, 6, 7},
|
|
|
|
},
|
|
|
|
.tag_elf_symbols = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_ELF_SYMBOLS,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_elf_symbols),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.num = 10,
|
|
|
|
.ent_size = 0,
|
|
|
|
.shndx = 40,
|
|
|
|
.reserved1 = 0,
|
|
|
|
},
|
|
|
|
.data = {
|
|
|
|
9, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 27, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0,
|
|
|
|
0, 0, 64, 0, 0, 16, 0, 0, 150, 53, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0,
|
|
|
|
1, 0, 0, 0, 2, 0, 0, 0, 0, 64, 64, 0, 0, 80, 0, 0,
|
|
|
|
8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0,
|
|
|
|
0, 0, 0, 0, 41, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0,
|
|
|
|
8, 75, 64, 0, 8, 91, 0, 0, 132, 10, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0,
|
|
|
|
1, 0, 0, 0, 3, 0, 0, 0, 0, 96, 64, 0, 0, 112, 0, 0,
|
|
|
|
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0,
|
|
|
|
0, 0, 0, 0, 57, 0, 0, 0, 8, 0, 0, 0, 3, 0, 0, 0,
|
|
|
|
0, 112, 64, 0, 1, 112, 0, 0, 64, 169, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0,
|
|
|
|
1, 0, 0, 0, 48, 0, 0, 0, 0, 0, 16, 0, 1, 112, 0, 0,
|
|
|
|
17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
|
|
|
|
1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
20, 0, 16, 0, 20, 112, 0, 0, 176, 12, 0, 0, 8, 0, 0, 0,
|
|
|
|
72, 0, 0, 0, 4, 0, 0, 0, 16, 0, 0, 0, 9, 0, 0, 0,
|
|
|
|
3, 0, 0, 0, 0, 0, 0, 0, 196, 12, 16, 0, 196, 124, 0, 0,
|
|
|
|
208, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 17, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
148, 26, 16, 0, 148, 138, 0, 0, 71, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
.tag_apm_table = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_APM_TABLE,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_apm_table),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.version = 0,
|
|
|
|
.cseg = 123,
|
|
|
|
.offset = 456,
|
|
|
|
.cseg_16 = 789,
|
|
|
|
.dseg = 123,
|
|
|
|
.flags = 1,
|
|
|
|
.cseg_len = 456,
|
|
|
|
.cseg_16_len = 789,
|
|
|
|
.dseg_len = 123,
|
|
|
|
},
|
|
|
|
.tag_efi_32bit_system_table_ptr = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_EFI_32BIT_SYSTEM_TABLE_PTR,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_efi_32bit_system_table_ptr),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.pointer = 0,
|
|
|
|
},
|
|
|
|
.tag_efi_64bit_system_table_ptr = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_EFI_64BIT_SYSTEM_TABLE_PTR,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_efi_64bit_system_table_ptr),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.pointer = 0,
|
|
|
|
},
|
|
|
|
.tag_smbios_tables = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_SMBIOS_TABLES,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_smbios_tables),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.major = 1,
|
|
|
|
.minor = 2,
|
|
|
|
.reserved1 = {0, 0, 0, 0, 0, 0},
|
|
|
|
},
|
|
|
|
.data = {0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
},
|
|
|
|
.tag_acpi_old_rsdp = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_ACPI_OLD_RSDP,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_acpi_old_rsdp),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.data = {0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
},
|
|
|
|
.tag_acpi_new_rsdp = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_ACPI_NEW_RSDP,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_acpi_new_rsdp),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.data = {0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
},
|
|
|
|
.tag_networking_info = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_NETWORKING_INFO,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_networking_info),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
.data = {0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
},
|
|
|
|
.tag_efi_memory_map = {
|
|
|
|
.tag = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_EFI_MEMORY_MAP,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_efi_memory_map),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.descriptor_size = 123,
|
|
|
|
.descriptor_version = 1,
|
|
|
|
},
|
|
|
|
.data = {0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
},
|
|
|
|
.tag_efi_boot_services_not_terminated = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_EFI_BOOT_SERVICES_NOT_TERMINATED,
|
2020-11-29 15:08:44 -05:00
|
|
|
.size = sizeof(
|
2022-01-12 23:05:34 -05:00
|
|
|
multiboot2_info_example2.tag_efi_boot_services_not_terminated
|
2020-11-29 15:08:44 -05:00
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
.tag_efi_32bit_image_handle_ptr = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_EFI_32BIT_IMAGE_HANDLE_PTR,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_efi_32bit_image_handle_ptr),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.pointer = 0,
|
|
|
|
},
|
|
|
|
.tag_efi_64bit_image_handle_ptr = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_EFI_64BIT_IMAGE_HANDLE_PTR,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_efi_64bit_image_handle_ptr),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.pointer = 0,
|
|
|
|
},
|
|
|
|
.tag_image_load_base_phys_addr = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_IMAGE_LOAD_BASE_PHYS_ADDR,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_image_load_base_phys_addr),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
.load_base_addr = 123,
|
|
|
|
},
|
|
|
|
.tag_none = {
|
|
|
|
.base = {
|
2022-01-12 21:49:25 -05:00
|
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_NONE,
|
2022-01-12 23:05:34 -05:00
|
|
|
.size = sizeof(multiboot2_info_example2.tag_none),
|
2020-11-29 15:08:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2022-06-12 06:25:10 -04:00
|
|
|
|
|
|
|
#ifdef __TINYC__
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif
|