From 094bc0c1a3474bdb709fc755c1c49085c89699ee Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sat, 30 Oct 2021 01:51:34 +0200 Subject: [PATCH] stivale2: Only print base addresses when fully virtual --- stage23/protos/stivale2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c index 4a8d3119..a306a003 100644 --- a/stage23/protos/stivale2.c +++ b/stage23/protos/stivale2.c @@ -169,8 +169,10 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table want_fully_virtual, &physical_base, &virtual_base)) panic("stivale2: ELF64 load failure"); - printv("stivale2: Physical base: %X\n", physical_base); - printv("stivale2: Virtual base: %X\n", virtual_base); + if (want_fully_virtual) { + printv("stivale2: Physical base: %X\n", physical_base); + printv("stivale2: Virtual base: %X\n", virtual_base); + } ret = elf64_load_section(kernel, &stivale2_hdr, ".stivale2hdr", sizeof(struct stivale2_header), slide);