From e308da5b48ebb2f4b74e8b2d09f8e52c5bbc1146 Mon Sep 17 00:00:00 2001 From: Andy-Python-Programmer Date: Tue, 10 Aug 2021 19:09:59 +1000 Subject: [PATCH] Add the kernel file v2 tag in tests Signed-off-by: Andy-Python-Programmer --- test/stivale2.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/stivale2.c b/test/stivale2.c index a924094e..a836ff98 100644 --- a/test/stivale2.c +++ b/test/stivale2.c @@ -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);