Print Multiboot 2 APM table tag

This commit is contained in:
Alex Kotov 2020-11-29 03:06:25 +05:00
parent 8607858df7
commit d73dd585de
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 21 additions and 0 deletions

View File

@ -182,6 +182,18 @@ void KernAux_Multiboot2_TagBase_print(
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_APM_TABLE:
{
const struct KernAux_Multiboot2_Tag_APMTable *const tag_apm =
(struct KernAux_Multiboot2_Tag_APMTable*)tag_base;
print(" version: %hu\n", tag_apm->version);
print(" cseg: %hu\n", tag_apm->cseg);
print(" offset: %u\n", tag_apm->offset);
print(" cseg 16: %hu\n", tag_apm->cseg_16);
print(" dseg: %hu\n", tag_apm->dseg);
print(" flags: %hu\n", tag_apm->flags);
print(" cseg len: %hu\n", tag_apm->cseg_len);
print(" cseg 16 len: %hu\n", tag_apm->cseg_16_len);
print(" dseg len: %hu\n", tag_apm->dseg_len);
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_32BIT_SYSTEM_TABLE_PTR:

View File

@ -22,6 +22,15 @@ static const char output[] =
"Multiboot 2 tag\n"
" type: 10 (APM table)\n"
" size: 28\n"
" version: 258\n"
" cseg: 61440\n"
" offset: 54479\n"
" cseg 16: 61440\n"
" dseg: 61440\n"
" flags: 3\n"
" cseg len: 65520\n"
" cseg 16 len: 65520\n"
" dseg len: 65520\n"
"Multiboot 2 tag\n"
" type: 3 (module)\n"
" size: 29\n"