mirror of https://github.com/tailix/mrubyvisor.git
Upgrade submodule "vendor/libkernaux"
This commit is contained in:
parent
3cedd7b2a8
commit
6adb5396b1
|
@ -2,28 +2,6 @@
|
||||||
|
|
||||||
#include <kernaux/multiboot2.h>
|
#include <kernaux/multiboot2.h>
|
||||||
|
|
||||||
// TODO: move these macros to libkernaux
|
|
||||||
|
|
||||||
#define HFIELDS_COMMON(whole_name, htag_name, type) \
|
|
||||||
struct { \
|
|
||||||
struct KernAux_Multiboot2_HTag_##type htag_name; \
|
|
||||||
} KERNAUX_PACKED whole_name;
|
|
||||||
|
|
||||||
#define HFIELDS_INFO_REQ_ODD(whole_name, htag_name, data_name, align_name, \
|
|
||||||
mbi_tag_types_count) \
|
|
||||||
struct { \
|
|
||||||
struct KernAux_Multiboot2_HTag_InfoReq htag_name; \
|
|
||||||
uint32_t data_name[mbi_tag_types_count]; \
|
|
||||||
} KERNAUX_PACKED whole_name; \
|
|
||||||
uint8_t align_name[4];
|
|
||||||
|
|
||||||
#define HFIELDS_INFO_REQ_EVEN(whole_name, htag_name, data_name, align_name, \
|
|
||||||
mbi_tag_types_count) \
|
|
||||||
struct { \
|
|
||||||
struct KernAux_Multiboot2_HTag_InfoReq htag_name; \
|
|
||||||
uint32_t data_name[mbi_tag_types_count]; \
|
|
||||||
} KERNAUX_PACKED whole_name;
|
|
||||||
|
|
||||||
#include <kernaux/macro/packing_start.run>
|
#include <kernaux/macro/packing_start.run>
|
||||||
|
|
||||||
__attribute__((
|
__attribute__((
|
||||||
|
@ -33,8 +11,8 @@ __attribute__((
|
||||||
))
|
))
|
||||||
const struct {
|
const struct {
|
||||||
struct KernAux_Multiboot2_Header header;
|
struct KernAux_Multiboot2_Header header;
|
||||||
HFIELDS_INFO_REQ_ODD(tag_info_req, tag, mbi_tag_types, _align1, 1)
|
KERNAUX_MULTIBOOT2_HFIELDS_INFO_REQ_ODD(tag_info_req, 1, _align1)
|
||||||
HFIELDS_COMMON (tag_none, tag, None)
|
KERNAUX_MULTIBOOT2_HFIELDS_COMMON(tag_none, None)
|
||||||
}
|
}
|
||||||
KERNAUX_PACKED
|
KERNAUX_PACKED
|
||||||
multiboot2_header = {
|
multiboot2_header = {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7ea1d4b2b13053963001c7348b1f8eec8233c377
|
Subproject commit cb834226a73eda147c0f6d60ad14a63ad2a93628
|
Loading…
Reference in New Issue