summaryrefslogtreecommitdiff
path: root/include/hooks.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-10-16 11:09:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-19 15:15:37 -0700
commit096edc1de9a7eeb4f90b9849cff6a8667bb15d30 (patch)
treed2cc9596f9d720cee04dee79f52e057886d085ec /include/hooks.h
parentcb3e0ca7865d920bd89997046641b48c040e2a36 (diff)
downloadchrome-ec-096edc1de9a7eeb4f90b9849cff6a8667bb15d30.tar.gz
glados_pd: reduce image size and build full RO and RW
Modify glados_pd to build a full RO and RW binary. Note that in order to fit RO and RW into the small flash size, this CL removes the console task and adds one-way debug printfs to save space. For debugging purposes, you add the console back in by uncommenting the CONSOLE task in ec.tasklist. This will build an RW image only that has a full console. BUG=chrome-os-partner:41959 BRANCH=none TEST=load on glados_pd and verify host commands from EC work and charging with zinger works. also test that software sync works. Change-Id: I57895d12a1776a865aac1735aeb0aa8897f1779e Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/306784 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r--include/hooks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hooks.h b/include/hooks.h
index d62fca9b4a..49617aba95 100644
--- a/include/hooks.h
+++ b/include/hooks.h
@@ -251,7 +251,7 @@ struct deferred_data {
* @param routine Function pointer, with prototype void routine(void)
*/
#define DECLARE_DEFERRED(routine) \
- const struct deferred_data CONCAT2(__deferred_, routine) \
+ const struct deferred_data __keep CONCAT2(__deferred_, routine) \
__attribute__((section(".rodata.deferred"))) \
= {routine}