2022-01-14 00:40:51 -05:00
|
|
|
#include <kernaux/multiboot2.h>
|
|
|
|
|
2022-01-14 00:44:44 -05:00
|
|
|
__attribute__((section(KERNAUX_MULTIBOOT2_HEADER_SECTION), used))
|
|
|
|
__attribute__((aligned(KERNAUX_MULTIBOOT2_HEADER_ALIGN)))
|
2022-01-14 00:40:51 -05:00
|
|
|
const struct {
|
|
|
|
struct KernAux_Multiboot2_Header multiboot2_header;
|
|
|
|
struct KernAux_Multiboot2_HTag_None tag_none;
|
2022-01-14 00:54:04 -05:00
|
|
|
}
|
|
|
|
__attribute__((packed))
|
|
|
|
multiboot2_header = {
|
2022-01-14 00:40:51 -05:00
|
|
|
.multiboot2_header = {
|
|
|
|
.magic = KERNAUX_MULTIBOOT2_HEADER_MAGIC,
|
|
|
|
.arch = KERNAUX_MULTIBOOT2_ARCH_NONE,
|
|
|
|
.total_size = sizeof(multiboot2_header),
|
|
|
|
.checksum = KERNAUX_MULTIBOOT2_HEADER_CHECKSUM(
|
|
|
|
KERNAUX_MULTIBOOT2_ARCH_NONE,
|
|
|
|
sizeof(multiboot2_header)
|
|
|
|
),
|
|
|
|
},
|
|
|
|
.tag_none = {
|
|
|
|
.base = {
|
|
|
|
.type = KERNAUX_MULTIBOOT2_HTAG_NONE,
|
|
|
|
.flags = 0,
|
|
|
|
.size = sizeof(multiboot2_header.tag_none),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|