Pack Multiboot 2 header

This commit is contained in:
Alex Kotov 2022-01-14 10:54:04 +05:00
parent a225d0b1d3
commit c8ccffbf47
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,9 @@ __attribute__((aligned(KERNAUX_MULTIBOOT2_HEADER_ALIGN)))
const struct {
struct KernAux_Multiboot2_Header multiboot2_header;
struct KernAux_Multiboot2_HTag_None tag_none;
} multiboot2_header = {
}
__attribute__((packed))
multiboot2_header = {
.multiboot2_header = {
.magic = KERNAUX_MULTIBOOT2_HEADER_MAGIC,
.arch = KERNAUX_MULTIBOOT2_ARCH_NONE,

View File

@ -5,7 +5,9 @@ __attribute__((aligned(KERNAUX_MULTIBOOT2_HEADER_ALIGN)))
const struct {
struct KernAux_Multiboot2_Header multiboot2_header;
struct KernAux_Multiboot2_HTag_None tag_none;
} multiboot2_header = {
}
__attribute__((packed))
multiboot2_header = {
.multiboot2_header = {
.magic = KERNAUX_MULTIBOOT2_HEADER_MAGIC,
.arch = KERNAUX_MULTIBOOT2_ARCH_NONE,