Add field multiboot2_header_example2.tag_framebuffer

This commit is contained in:
Alex Kotov 2022-01-14 09:30:39 +05:00
parent 0e8609977d
commit 2c7e0055d0
2 changed files with 20 additions and 2 deletions

View File

@ -16,6 +16,10 @@ static const struct {
uint8_t _align2[4];
struct KernAux_Multiboot2_HTag_Framebuffer tag_framebuffer;
uint8_t _align3[4];
struct KernAux_Multiboot2_HTag_None tag_none;
} multiboot2_header_example2 = {
.multiboot2_header = {
@ -90,6 +94,16 @@ static const struct {
KERNAUX_MULTIBOOT2_HTAG_FLAGS_EGA_SUPPORT
),
},
.tag_framebuffer = {
.base = {
.type = KERNAUX_MULTIBOOT2_HTAG_FRAMEBUFFER,
.flags = 0,
.size = sizeof(multiboot2_header_example2.tag_framebuffer),
},
.width = 0,
.height = 0,
.depth = 0,
},
.tag_none = {
.base = {
.type = KERNAUX_MULTIBOOT2_HTAG_NONE,

View File

@ -14,8 +14,8 @@ static const char output2[] =
"Multiboot 2 header\n"
" magic: 920085129\n"
" arch: 1\n"
" size: 176\n"
" checksum: 3374881990\n"
" size: 200\n"
" checksum: 3374881966\n"
"Multiboot 2 header tag\n"
" type: 1 (information request)\n"
" flags: 0\n"
@ -33,6 +33,10 @@ static const char output2[] =
" flags: 0\n"
" size: 12\n"
"Multiboot 2 header tag\n"
" type: 5 (framebuffer)\n"
" flags: 0\n"
" size: 20\n"
"Multiboot 2 header tag\n"
" type: 0 (none)\n"
" flags: 0\n"
" size: 8\n";