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:
parent
88ab62498b
commit
0056accb80
1 changed files with 13 additions and 4 deletions
|
@ -21,15 +21,24 @@ 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;
|
||||
unsigned total_size : 32;
|
||||
unsigned checksum : 32;
|
||||
unsigned magic : 32;
|
||||
enum KernAux_Multiboot2_Arch arch : 32;
|
||||
unsigned total_size : 32;
|
||||
unsigned checksum : 32;
|
||||
}
|
||||
__attribute__((packed));
|
||||
|
||||
|
|
Loading…
Reference in a new issue