Changeset b183865e in mainline
- Timestamp:
- 2005-11-09T14:12:34Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2ccd275
- Parents:
- e2ec980f
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
re2ec980f rb183865e 63 63 include genarch/Makefile.inc 64 64 65 ifeq ($(CONFIG_DEBUG), n)66 DEFS += -D NDEBUG65 ifeq ($(CONFIG_DEBUG),y) 66 DEFS += -DCONFIG_DEBUG 67 67 endif 68 68 ifeq ($(CONFIG_DEBUG_SPINLOCK),y) -
Makefile.config
re2ec980f rb183865e 24 24 # 25 25 26 CONFIG_DEBUG = n26 CONFIG_DEBUG = y 27 27 CONFIG_DEBUG_SPINLOCK = y 28 28 -
generic/include/debug.h
re2ec980f rb183865e 35 35 /** Debugging ASSERT macro 36 36 * 37 * If NDEBUG is notset, the ASSERT() macro37 * If CONFIG_DEBUG is set, the ASSERT() macro 38 38 * evaluates expr and if it is false raises 39 39 * kernel panic. … … 42 42 * 43 43 */ 44 #if ndef NDEBUG44 #ifdef CONFIG_DEBUG 45 45 # define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s)", #expr); } 46 46 #else -
generic/include/panic.h
re2ec980f rb183865e 30 30 #define __PANIC_H__ 31 31 32 #if ndef NDEBUG32 #ifdef CONFIG_DEBUG 33 33 # define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__); 34 34 #else
Note:
See TracChangeset
for help on using the changeset viewer.