Add more Multiboot 2 tags to example data

This commit is contained in:
Alex Kotov 2020-11-29 19:42:27 +05:00
parent b508e911a7
commit 05cb6f6288
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 14 additions and 0 deletions

View File

@ -92,6 +92,11 @@ static const struct {
unsigned char data[8];
} tag_acpi_new_rsdp;
struct {
struct KernAux_Multiboot2_Tag_NetworkingInfo tag;
unsigned char data[8];
} tag_networking_info;
struct KernAux_Multiboot2_Tag_None tag_none;
} multiboot2_example = {
.multiboot2 = {
@ -301,6 +306,15 @@ static const struct {
},
.data = {0, 0, 0, 0, 0, 0, 0, 0},
},
.tag_networking_info = {
.tag = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_NETWORKING_INFO,
.size = sizeof(multiboot2_example.tag_networking_info),
},
},
.data = {0, 0, 0, 0, 0, 0, 0, 0},
},
.tag_none = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_NONE,