mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-02 05:06:59 +03:00
Merge pull request #152 from Andy-Python-Programmer/trunk
stivale tests: fix BUG: Unidentified tag 0x9b4358364c19ee62
This commit is contained in:
commit
9fc15b377a
@ -61,6 +61,19 @@ static void ap_entry(struct stivale2_smp_info *s) {
|
||||
for (;;) asm("hlt");
|
||||
}
|
||||
|
||||
static void print_guid(struct stivale2_guid guid) {
|
||||
e9_printf("\t\ta: %x", guid.a);
|
||||
e9_printf("\t\tb: %x", guid.b);
|
||||
e9_printf("\t\tc: %x", guid.c);
|
||||
e9_puts("\t\td: [");
|
||||
|
||||
for (uint8_t i = 0; i < 8; i++) {
|
||||
e9_printf("\t\t\t%x,", guid.d[i]);
|
||||
}
|
||||
|
||||
e9_puts("\t\t]\n");
|
||||
}
|
||||
|
||||
void stivale2_main(struct stivale2_struct *info) {
|
||||
// Print the tags.
|
||||
struct stivale2_tag *tag = (struct stivale2_tag *)info->tags;
|
||||
@ -225,6 +238,15 @@ void stivale2_main(struct stivale2_struct *info) {
|
||||
e9_printf("\tVirtual base address: %x", t->virtual_base_address);
|
||||
break;
|
||||
}
|
||||
case STIVALE2_STRUCT_TAG_BOOT_VOLUME_ID: {
|
||||
struct stivale2_struct_tag_boot_volume *t = (void *)tag;
|
||||
e9_puts("Boot volume:");
|
||||
e9_printf("\tGUID:");
|
||||
print_guid(t->guid);
|
||||
e9_printf("\tPartition GUID:");
|
||||
print_guid(t->part_guid);
|
||||
break;
|
||||
}
|
||||
case STIVALE2_STRUCT_TAG_SMP_ID: {
|
||||
struct stivale2_struct_tag_smp *s = (struct stivale2_struct_tag_smp *)tag;
|
||||
e9_puts("SMP tag:");
|
||||
|
Loading…
Reference in New Issue
Block a user