Add field multiboot2_header_example2.tag_efi_boot_services

This commit is contained in:
Alex Kotov 2022-01-14 09:33:49 +05:00
parent ef03fc4123
commit ade74a9941
2 changed files with 15 additions and 2 deletions

View File

@ -22,6 +22,8 @@ static const struct {
struct KernAux_Multiboot2_HTag_ModuleAlign tag_module_align;
struct KernAux_Multiboot2_HTag_EFIBootServices tag_efi_boot_services;
struct KernAux_Multiboot2_HTag_None tag_none;
} multiboot2_header_example2 = {
.multiboot2_header = {
@ -113,6 +115,13 @@ static const struct {
.size = sizeof(multiboot2_header_example2.tag_module_align),
},
},
.tag_efi_boot_services = {
.base = {
.type = KERNAUX_MULTIBOOT2_HTAG_EFI_BOOT_SERVICES,
.flags = 0,
.size = sizeof(multiboot2_header_example2.tag_efi_boot_services),
},
},
.tag_none = {
.base = {
.type = KERNAUX_MULTIBOOT2_HTAG_NONE,

View File

@ -14,8 +14,8 @@ static const char output2[] =
"Multiboot 2 header\n"
" magic: 920085129\n"
" arch: 1\n"
" size: 208\n"
" checksum: 3374881958\n"
" size: 216\n"
" checksum: 3374881950\n"
"Multiboot 2 header tag\n"
" type: 1 (information request)\n"
" flags: 0\n"
@ -41,6 +41,10 @@ static const char output2[] =
" flags: 0\n"
" size: 8\n"
"Multiboot 2 header tag\n"
" type: 7 (EFI boot services)\n"
" flags: 0\n"
" size: 8\n"
"Multiboot 2 header tag\n"
" type: 0 (none)\n"
" flags: 0\n"
" size: 8\n";