mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-20 11:06:41 -05:00
26 lines
663 B
C
26 lines
663 B
C
#include <kernaux/macro.h>
|
|
#include <kernaux/multiboot2.h>
|
|
|
|
#include <kernaux/macro/packing_start.run>
|
|
|
|
// Minimal example
|
|
KERNAUX_ALIGNED(KERNAUX_MULTIBOOT2_INFO_ALIGN)
|
|
static const struct {
|
|
struct KernAux_Multiboot2_Info multiboot2_info;
|
|
struct KernAux_Multiboot2_ITag_None tag_none;
|
|
}
|
|
KERNAUX_PACKED
|
|
multiboot2_info_example0 = {
|
|
.multiboot2_info = {
|
|
.total_size = sizeof(multiboot2_info_example0),
|
|
.reserved = 0,
|
|
},
|
|
.tag_none = {
|
|
.base = {
|
|
.type = KERNAUX_MULTIBOOT2_ITAG_NONE,
|
|
.size = sizeof(multiboot2_info_example0.tag_none),
|
|
},
|
|
},
|
|
};
|
|
|
|
#include <kernaux/macro/packing_end.run>
|