summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2014-02-21 16:22:52 +0800
committerMike Loptien <mike.loptien@se-eng.com>2014-10-07 23:38:08 +0200
commit34c5933a66caf839ac82c2bdf3e50bcce816b36d (patch)
tree27f6945fb187ce1c5f54c35e55c1a0580023544a
parent6eaaafa2c32029bd9dc5fb4196fe2b22cb5b4d9b (diff)
gen: Add "assert" in assert.h.
Typically assert.h should provide assert(). Change-Id: I465f4a616b212f7b00d445c575866b13eecfa6fb Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/187410 Reviewed-by: Julius Werner <jwerner@chromium.org> (cherry picked from commit 3990584ac8e1ec9b3838bd9dfdf8a9cb2d20fbd0) Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com> Signed-off-by: Bruce Griffith <Bruce.Griffith@se-eng.com> Reviewed-on: http://review.coreboot.org/6961 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/include/assert.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/assert.h b/src/include/assert.h
index 346e76961e..9f624a931f 100644
--- a/src/include/assert.h
+++ b/src/include/assert.h
@@ -20,6 +20,8 @@
#ifndef __ASSERT_H__
#define __ASSERT_H__
+#include <console/console.h>
+
#if defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM
/* ROMCC versions */
@@ -59,6 +61,8 @@
/* die(""); */ \
}
-#endif
+#endif /* defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM */
+
+#define assert(statement) ASSERT(statement)
#endif // __ASSERT_H__