diff options
author | Jordan Niethe <jniethe5@gmail.com> | 2019-04-02 10:43:13 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-05-20 14:20:29 +1000 |
commit | ad61b0a90ea120261af9813d88658d186309577d (patch) | |
tree | 5d71dd682c1c7f8478cc7c694a76b9107aebf44c | |
parent | 989c41041944288ebce6c7015b2baf846d19e87e (diff) | |
download | skiboot-ad61b0a90ea120261af9813d88658d186309577d.zip skiboot-ad61b0a90ea120261af9813d88658d186309577d.tar.gz skiboot-ad61b0a90ea120261af9813d88658d186309577d.tar.bz2 |
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 <jniethe5@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | core/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |