1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-07 17:32:45 -04:00

Add field multiboot2_header_example2.tag_module_align

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

View file

@ -20,6 +20,8 @@ static const struct {
uint8_t _align3[4];
struct KernAux_Multiboot2_HTag_ModuleAlign tag_module_align;
struct KernAux_Multiboot2_HTag_None tag_none;
} multiboot2_header_example2 = {
.multiboot2_header = {
@ -104,6 +106,13 @@ static const struct {
.height = 0,
.depth = 0,
},
.tag_module_align = {
.base = {
.type = KERNAUX_MULTIBOOT2_HTAG_MODULE_ALIGN,
.flags = 0,
.size = sizeof(multiboot2_header_example2.tag_module_align),
},
},
.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: 200\n"
" checksum: 3374881966\n"
" size: 208\n"
" checksum: 3374881958\n"
"Multiboot 2 header tag\n"
" type: 1 (information request)\n"
" flags: 0\n"
@ -37,6 +37,10 @@ static const char output2[] =
" flags: 0\n"
" size: 20\n"
"Multiboot 2 header tag\n"
" type: 6 (module alignment)\n"
" flags: 0\n"
" size: 8\n"
"Multiboot 2 header tag\n"
" type: 0 (none)\n"
" flags: 0\n"
" size: 8\n";