1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

Add more Multiboot 2 tags to example data

This commit is contained in:
Alex Kotov 2020-11-29 19:46:28 +05:00
parent 05cb6f6288
commit f9c6fa1134
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -97,6 +97,27 @@ static const struct {
unsigned char data[8]; unsigned char data[8];
} tag_networking_info; } tag_networking_info;
struct {
struct KernAux_Multiboot2_Tag_EFIMemoryMap tag;
unsigned char data[8];
} tag_efi_memory_map;
struct KernAux_Multiboot2_Tag_EFIBootServicesNotTerminated
tag_efi_boot_services_not_terminated;
struct KernAux_Multiboot2_Tag_EFI32bitImageHandlePtr
tag_efi_32bit_image_handle_ptr;
unsigned char _align10[4];
struct KernAux_Multiboot2_Tag_EFI64bitImageHandlePtr
tag_efi_64bit_image_handle_ptr;
struct KernAux_Multiboot2_Tag_ImageLoadBasePhysAddr
tag_image_load_base_phys_addr;
unsigned char _align11[4];
struct KernAux_Multiboot2_Tag_None tag_none; struct KernAux_Multiboot2_Tag_None tag_none;
} multiboot2_example = { } multiboot2_example = {
.multiboot2 = { .multiboot2 = {
@ -315,6 +336,45 @@ static const struct {
}, },
.data = {0, 0, 0, 0, 0, 0, 0, 0}, .data = {0, 0, 0, 0, 0, 0, 0, 0},
}, },
.tag_efi_memory_map = {
.tag = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_EFI_MEMORY_MAP,
.size = sizeof(multiboot2_example.tag_efi_memory_map),
},
.descriptor_size = 123,
.descriptor_version = 1,
},
.data = {0, 0, 0, 0, 0, 0, 0, 0},
},
.tag_efi_boot_services_not_terminated = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_EFI_BOOT_SERVICES_NOT_TERMINATED,
.size =
sizeof(multiboot2_example.tag_efi_boot_services_not_terminated),
},
},
.tag_efi_32bit_image_handle_ptr = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_EFI_32BIT_IMAGE_HANDLE_PTR,
.size = sizeof(multiboot2_example.tag_efi_32bit_image_handle_ptr),
},
.pointer = 0,
},
.tag_efi_64bit_image_handle_ptr = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_EFI_64BIT_IMAGE_HANDLE_PTR,
.size = sizeof(multiboot2_example.tag_efi_64bit_image_handle_ptr),
},
.pointer = 0,
},
.tag_image_load_base_phys_addr = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_IMAGE_LOAD_BASE_PHYS_ADDR,
.size = sizeof(multiboot2_example.tag_image_load_base_phys_addr),
},
.load_base_addr = 123,
},
.tag_none = { .tag_none = {
.base = { .base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_NONE, .type = KERNAUX_MULTIBOOT2_TAGTYPE_NONE,