diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-01 16:33:19 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-11 17:25:10 +1000 |
commit | f2a7a5c23d81e61b9c31b2b0cb899f788c7f9197 (patch) | |
tree | f1bca6f47ae8a7409049d98232f61522a18a5ec8 /core/trace.c | |
parent | 1c2a21d2f9758a9ed3f9c4ec6f5b67a0f8ac50c3 (diff) | |
download | blackbird-skiboot-f2a7a5c23d81e61b9c31b2b0cb899f788c7f9197.tar.gz blackbird-skiboot-f2a7a5c23d81e61b9c31b2b0cb899f788c7f9197.zip |
Move boot_tracebuf to BSS
this saves 65720 bytes from skiboot.lid
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/trace.c')
-rw-r--r-- | core/trace.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/core/trace.c b/core/trace.c index 6dc1e65d..15e505a0 100644 --- a/core/trace.c +++ b/core/trace.c @@ -35,19 +35,14 @@ static struct { struct trace_info trace_info; char buf[BOOT_TBUF_SZ + MAX_SIZE]; -} boot_tracebuf __section(".data.boot_trace") = { - .trace_info = { - .lock = LOCK_UNLOCKED, - .tb = { - .mask = BOOT_TBUF_SZ - 1, - .max_size = MAX_SIZE - }, - }, - .buf = { 0 } -}; +} boot_tracebuf; void init_boot_tracebuf(struct cpu_thread *boot_cpu) { + init_lock(&boot_tracebuf.trace_info.lock); + boot_tracebuf.trace_info.tb.mask = BOOT_TBUF_SZ - 1; + boot_tracebuf.trace_info.tb.max_size = MAX_SIZE; + boot_cpu->trace = &boot_tracebuf.trace_info; } |