Bruce Griffith (Bruce.Griffith@se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6961
-gerrit
commit 4c3f36dd913d92b07b0cd98859462ab7a0b372c8 Author: Hung-Te Lin hungte@chromium.org Date: Fri Feb 21 16:22:52 2014 +0800
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 --- src/include/assert.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/include/assert.h b/src/include/assert.h index 346e769..9f624a9 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__