summaryrefslogtreecommitdiff
path: root/src/boot/hardwaremain.c
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2012-09-22 14:52:24 +0200
committerPeter Stuge <peter@stuge.se>2012-10-02 19:52:07 +0200
commit14b248b4a2562ed6434a41a8546e83aee3471083 (patch)
tree68761db1f27a3fbf32035e788f40397979a892d1 /src/boot/hardwaremain.c
parentefcb8de12e5c0757a5b3784a43a54046aaff460f (diff)
Fix compilation without CONFIG_WRITE_HIGH_TABLES.
Without that fix we have: CC boot/hardwaremain.ramstage.o src/boot/hardwaremain.c: In function 'hardwaremain': src/boot/hardwaremain.c:136:6: error: 'cbmem_post_handling' undeclared (first use in this function) src/boot/hardwaremain.c:136:6: note: each undeclared identifier is reported only once for each function it appears in src/boot/hardwaremain.c:137:3: error: implicit declaration of function 'cbmem_post_handling' [-Werror=implicit-function-declaration] cc1: all warnings being treated as errors make: *** [build/boot/hardwaremain.ramstage.o] Error 1 When compiling without CONFIG_WRITE_HIGH_TABLES Change-Id: Ie45f684a6db0ab55ef469bfcef57e539ae7e994c Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Reviewed-on: http://review.coreboot.org/1533 Tested-by: build bot (Jenkins) Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/boot/hardwaremain.c')
-rw-r--r--src/boot/hardwaremain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c
index bb7f264c08..099ab3ae78 100644
--- a/src/boot/hardwaremain.c
+++ b/src/boot/hardwaremain.c
@@ -133,8 +133,10 @@ void hardwaremain(int boot_complete)
timestamp_add(TS_DEVICE_DONE, timestamps[5]);
timestamp_add_now(TS_CBMEM_POST);
+#if CONFIG_WRITE_HIGH_TABLES
if (cbmem_post_handling)
cbmem_post_handling();
+#endif
timestamp_add_now(TS_WRITE_TABLES);