mirror of
https://github.com/tailix/libclayer.git
synced 2024-11-20 11:06:24 -05:00
27 lines
663 B
C
27 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>
|