1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

Add enum KernAux_Multiboot2_Arch

This commit is contained in:
Alex Kotov 2022-01-13 18:16:47 +05:00
parent 88ab62498b
commit 0056accb80

View file

@ -21,13 +21,22 @@ extern "C" {
#define KERNAUX_MULTIBOOT2_TAG_SIZE_ALIGN(tag_base) \
(((tag_base)->size + 7) & ~7)
/****************
* Common types *
****************/
enum KernAux_Multiboot2_Arch {
KERNAUX_MULTIBOOT2_ARCH_I386 = 1,
KERNAUX_MULTIBOOT2_ARCH_MIPS32 = 4,
};
/***********************
* Header common types *
***********************/
struct KernAux_Multiboot2_Header {
unsigned magic : 32;
unsigned arch : 32;
enum KernAux_Multiboot2_Arch arch : 32;
unsigned total_size : 32;
unsigned checksum : 32;
}