From ef03fc412352f9fc54bc4833bc8fad69c592f113 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 14 Jan 2022 09:32:17 +0500 Subject: [PATCH] Add field multiboot2_header_example2.tag_module_align --- tests/multiboot2_header_example2.h | 9 +++++++++ tests/test_multiboot2_header_print.c | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/multiboot2_header_example2.h b/tests/multiboot2_header_example2.h index 75a4ca1..1186993 100644 --- a/tests/multiboot2_header_example2.h +++ b/tests/multiboot2_header_example2.h @@ -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, diff --git a/tests/test_multiboot2_header_print.c b/tests/test_multiboot2_header_print.c index a28f540..e09e5e0 100644 --- a/tests/test_multiboot2_header_print.c +++ b/tests/test_multiboot2_header_print.c @@ -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";