1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00

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,