From 3df6d71e08c26dc4e1178577b614b9c57168c047 Mon Sep 17 00:00:00 2001 From: Mingqiang Chi Date: Tue, 14 Apr 2020 11:24:49 +0800 Subject: [PATCH] hv:print relocation delta now the actual address does not match with the MAP file if enable CONFIG_RELO when there are some exceptions, this patch print the delta between the actual load addess and CONFIG_HV_RAM_START. Tracked-On: #4144 Signed-off-by: Mingqiang Chi --- hypervisor/debug/dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypervisor/debug/dump.c b/hypervisor/debug/dump.c index 7e7207d60..6def74653 100644 --- a/hypervisor/debug/dump.c +++ b/hypervisor/debug/dump.c @@ -13,6 +13,7 @@ #include #include #include +#include #define CALL_TRACE_HIERARCHY_MAX 20U #define DUMP_STACK_SIZE 0x200U @@ -148,6 +149,7 @@ static void show_host_call_trace(uint64_t rsp, uint64_t rbp_arg, uint16_t pcpu_i uint32_t cb_hierarchy = 0U; uint64_t *sp = (uint64_t *)rsp; + pr_acrnlog("\r\n delta = (actual_load_address - CONFIG_HV_RAM_START) = 0x%llx\r\n", get_hv_image_delta()); pr_acrnlog("\r\nHost Stack: CPU_ID = %hu\r\n", pcpu_id); for (i = 0U; i < (DUMP_STACK_SIZE >> 5U); i++) { pr_acrnlog("addr(0x%lx) 0x%016lx 0x%016lx 0x%016lx 0x%016lx\r\n",