From 2d26ba2d24a4856557dc3cabf1162bd50d4cd6f5 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Wed, 4 Nov 2015 18:22:14 -0800 Subject: [PATCH] common: pd_log: Add PD log to .bss.slow. BUG=chrome-os-partner:46056 BUG=chrome-os-partner:46063 BRANCH=None TEST=Enable CONFIG_REPLACE_LOADER_WITH_BSS_SLOW on GLaDOS. Build, flash, and verify that AP and EC boot. Plug in a charger on both ports and use ectool to view the PD log. TEST=make -j buildall tests CQ-DEPEND=CL:311209 Change-Id: I54ae617e03c645d24319d83da6cc8b7d1d6528a3 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/311413 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Alec Berg --- common/pd_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/pd_log.c b/common/pd_log.c index 333a22b7bb..7cbcf0c49a 100644 --- a/common/pd_log.c +++ b/common/pd_log.c @@ -15,7 +15,7 @@ /* Event log FIFO */ #define UNIT_SIZE sizeof(struct ec_response_pd_log) #define LOG_SIZE (CONFIG_USB_PD_LOG_SIZE/UNIT_SIZE) -static struct ec_response_pd_log log_events[LOG_SIZE]; +static struct ec_response_pd_log __bss_slow log_events[LOG_SIZE]; BUILD_ASSERT(POWER_OF_TWO(LOG_SIZE)); /* * The FIFO pointers are defined as following :