From 999ccc17d05b5847cd6b867caeae8a8ac3fd7ec2 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 14 Jan 2022 09:17:11 +0500 Subject: [PATCH] Add field multiboot2_header_example2.tag_addr --- tests/multiboot2_header_example2.h | 13 +++++++++++++ tests/test_multiboot2_header_print.c | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/tests/multiboot2_header_example2.h b/tests/multiboot2_header_example2.h index 8eef263..6b5f62b 100644 --- a/tests/multiboot2_header_example2.h +++ b/tests/multiboot2_header_example2.h @@ -6,6 +6,8 @@ static const struct { enum KernAux_Multiboot2_ITag mbi_tag_types[22]; } tag_info_req; + struct KernAux_Multiboot2_HTag_Addr tag_addr; + struct KernAux_Multiboot2_HTag_None tag_none; } multiboot2_header_example2 = { .multiboot2_header = { @@ -50,6 +52,17 @@ static const struct { KERNAUX_MULTIBOOT2_ITAG_IMAGE_LOAD_BASE_PHYS_ADDR, }, }, + .tag_addr = { + .base = { + .type = KERNAUX_MULTIBOOT2_HTAG_ADDR, + .flags = 0, + .size = sizeof(multiboot2_header_example2.tag_addr), + }, + .header_addr = 0, + .load_addr = 0, + .load_end_addr = 0, + .bss_end_addr = 0, + }, .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 c163d19..f3f5475 100644 --- a/tests/test_multiboot2_header_print.c +++ b/tests/test_multiboot2_header_print.c @@ -14,13 +14,17 @@ static const char output2[] = "Multiboot 2 header\n" " magic: 920085129\n" " arch: 1\n" - " size: 120\n" - " checksum: 3374882046\n" + " size: 144\n" + " checksum: 3374882022\n" "Multiboot 2 header tag\n" " type: 1 (information request)\n" " flags: 0\n" " size: 96\n" "Multiboot 2 header tag\n" + " type: 2 (address)\n" + " flags: 0\n" + " size: 24\n" + "Multiboot 2 header tag\n" " type: 0 (none)\n" " flags: 0\n" " size: 8\n";