From dd5b2e6eb7e214eabc7c8a90581841b4f3eaf2c0 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Wed, 4 Nov 2015 14:17:02 -0800 Subject: [PATCH] common: button: Add items 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 EC and AP boot. Press power buttons, volume buttons, and verify all functional. TEST='sysjump rw' and repeat the above tests. TEST=make -j buildall tests CQ-DEPEND=CL:311209 Change-Id: I5dfb9003e2da1660400c04938b4f3106817ffc02 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/311412 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Randall Spangler --- common/button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/button.c b/common/button.c index b3e4d2e0ef..89e6d409e2 100644 --- a/common/button.c +++ b/common/button.c @@ -22,9 +22,9 @@ struct button_state_t { int debounced_pressed; }; -static struct button_state_t state[CONFIG_BUTTON_COUNT]; +static struct button_state_t __bss_slow state[CONFIG_BUTTON_COUNT]; -static uint64_t next_deferred_time; +static uint64_t __bss_slow next_deferred_time; /* * Whether a button is currently pressed.