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

Add more Multiboot 2 tags to example data

This commit is contained in:
Alex Kotov 2020-11-29 19:38:58 +05:00
parent 2d8d4dbd6c
commit b508e911a7
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -77,6 +77,21 @@ static const struct {
struct KernAux_Multiboot2_Tag_EFI64bitSystemTablePtr tag_efi_64bit_system_table_ptr;
struct {
struct KernAux_Multiboot2_Tag_SMBIOSTables tag;
unsigned char data[8];
} tag_smbios_tables;
struct {
struct KernAux_Multiboot2_Tag_ACPIOldRSDP tag;
unsigned char data[8];
} tag_acpi_old_rsdp;
struct {
struct KernAux_Multiboot2_Tag_ACPINewRSDP tag;
unsigned char data[8];
} tag_acpi_new_rsdp;
struct KernAux_Multiboot2_Tag_None tag_none;
} multiboot2_example = {
.multiboot2 = {
@ -256,6 +271,36 @@ static const struct {
},
.pointer = 0,
},
.tag_smbios_tables = {
.tag = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_SMBIOS_TABLES,
.size = sizeof(multiboot2_example.tag_smbios_tables),
},
.major = 1,
.minor = 2,
.reserved1 = {0, 0, 0, 0, 0, 0},
},
.data = {0, 0, 0, 0, 0, 0, 0, 0},
},
.tag_acpi_old_rsdp = {
.tag = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_ACPI_OLD_RSDP,
.size = sizeof(multiboot2_example.tag_acpi_old_rsdp),
},
},
.data = {0, 0, 0, 0, 0, 0, 0, 0},
},
.tag_acpi_new_rsdp = {
.tag = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_ACPI_NEW_RSDP,
.size = sizeof(multiboot2_example.tag_acpi_new_rsdp),
},
},
.data = {0, 0, 0, 0, 0, 0, 0, 0},
},
.tag_none = {
.base = {
.type = KERNAUX_MULTIBOOT2_TAGTYPE_NONE,