Add the kernel file v2 tag in tests

Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
This commit is contained in:
Andy-Python-Programmer 2021-08-10 19:09:59 +10:00
parent 9798bc2ac4
commit e308da5b48
No known key found for this signature in database
GPG Key ID: 80E0357347554B89

View File

@ -179,6 +179,13 @@ void stivale2_main(struct stivale2_struct *info) {
e9_printf("Raw kernel file loaded at: %x", t->kernel_file);
break;
}
case STIVALE2_STRUCT_TAG_KERNEL_FILE_V2_ID: {
struct stivale2_struct_tag_kernel_file_v2 *t = (struct stivale2_struct_tag_kernel_file_v2 *)tag;
e9_puts("Kernel file V2 tag:");
e9_printf("\tkernel_file: %x", t->kernel_file);
e9_printf("\tkernel_size: %x", t->kernel_size);
break;
}
case STIVALE2_STRUCT_TAG_KERNEL_SLIDE_ID: {
struct stivale2_struct_tag_kernel_slide *t = (struct stivale2_struct_tag_kernel_slide *)tag;
e9_printf("Kernel slide: %x", t->kernel_slide);