mirror of
https://github.com/tailix/libkernaux.git
synced 2025-09-11 22:56:00 -04:00
Add field multiboot2_header_example2.tag_addr
This commit is contained in:
parent
cd2b1b99e3
commit
999ccc17d0
2 changed files with 19 additions and 2 deletions
|
@ -6,6 +6,8 @@ static const struct {
|
||||||
enum KernAux_Multiboot2_ITag mbi_tag_types[22];
|
enum KernAux_Multiboot2_ITag mbi_tag_types[22];
|
||||||
} tag_info_req;
|
} tag_info_req;
|
||||||
|
|
||||||
|
struct KernAux_Multiboot2_HTag_Addr tag_addr;
|
||||||
|
|
||||||
struct KernAux_Multiboot2_HTag_None tag_none;
|
struct KernAux_Multiboot2_HTag_None tag_none;
|
||||||
} multiboot2_header_example2 = {
|
} multiboot2_header_example2 = {
|
||||||
.multiboot2_header = {
|
.multiboot2_header = {
|
||||||
|
@ -50,6 +52,17 @@ static const struct {
|
||||||
KERNAUX_MULTIBOOT2_ITAG_IMAGE_LOAD_BASE_PHYS_ADDR,
|
KERNAUX_MULTIBOOT2_ITAG_IMAGE_LOAD_BASE_PHYS_ADDR,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
.tag_addr = {
|
||||||
|
.base = {
|
||||||
|
.type = KERNAUX_MULTIBOOT2_HTAG_ADDR,
|
||||||
|
.flags = 0,
|
||||||
|
.size = sizeof(multiboot2_header_example2.tag_addr),
|
||||||
|
},
|
||||||
|
.header_addr = 0,
|
||||||
|
.load_addr = 0,
|
||||||
|
.load_end_addr = 0,
|
||||||
|
.bss_end_addr = 0,
|
||||||
|
},
|
||||||
.tag_none = {
|
.tag_none = {
|
||||||
.base = {
|
.base = {
|
||||||
.type = KERNAUX_MULTIBOOT2_HTAG_NONE,
|
.type = KERNAUX_MULTIBOOT2_HTAG_NONE,
|
||||||
|
|
|
@ -14,13 +14,17 @@ static const char output2[] =
|
||||||
"Multiboot 2 header\n"
|
"Multiboot 2 header\n"
|
||||||
" magic: 920085129\n"
|
" magic: 920085129\n"
|
||||||
" arch: 1\n"
|
" arch: 1\n"
|
||||||
" size: 120\n"
|
" size: 144\n"
|
||||||
" checksum: 3374882046\n"
|
" checksum: 3374882022\n"
|
||||||
"Multiboot 2 header tag\n"
|
"Multiboot 2 header tag\n"
|
||||||
" type: 1 (information request)\n"
|
" type: 1 (information request)\n"
|
||||||
" flags: 0\n"
|
" flags: 0\n"
|
||||||
" size: 96\n"
|
" size: 96\n"
|
||||||
"Multiboot 2 header tag\n"
|
"Multiboot 2 header tag\n"
|
||||||
|
" type: 2 (address)\n"
|
||||||
|
" flags: 0\n"
|
||||||
|
" size: 24\n"
|
||||||
|
"Multiboot 2 header tag\n"
|
||||||
" type: 0 (none)\n"
|
" type: 0 (none)\n"
|
||||||
" flags: 0\n"
|
" flags: 0\n"
|
||||||
" size: 8\n";
|
" size: 8\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue