From ad61b0a90ea120261af9813d88658d186309577d Mon Sep 17 00:00:00 2001 From: Jordan Niethe Date: Tue, 2 Apr 2019 10:43:13 +1100 Subject: core/trace: Put boot_tracebuf in correct location. A position for the boot_tracebuf is allocated in skiboot.lds.S. However, without a __section attribute the boot trace buffer is not placed in the correct location, meaning that it also will not be correctly aligned. Add the __section attribute to ensure it will be placed in its allocated position. Signed-off-by: Jordan Niethe Signed-off-by: Stewart Smith --- core/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/trace.c b/core/trace.c index d4e1b1d..4eb9e36 100644 --- a/core/trace.c +++ b/core/trace.c @@ -36,7 +36,7 @@ static struct { struct trace_info trace_info; char buf[BOOT_TBUF_SZ + MAX_SIZE]; -} boot_tracebuf; +} boot_tracebuf __section(".data.boot_trace"); void init_boot_tracebuf(struct cpu_thread *boot_cpu) { -- cgit v1.1