Commit Graph

12 Commits

Author SHA1 Message Date
Grissiom c9b8b7465f kernel: fix compiling error when RT_DEBUG is not defined
Define RT_DEBUG_IN_THREAD_CONTEXT when RT_DEBUG is not defined.
2013-10-12 10:58:56 +08:00
Grissiom 6f71308ef5 kernel: add RT_DEBUG_IN_THREAD_CONTEXT
In thread context means: 1) the scheduler has been started; 2) not in
interrupt context. It is more stronger than RT_DEBUG_NOT_IN_INTERRUPT.
With this commit, you will catch the error on situations like taking
mutex before scheduling instead of crashing on NULL pointer reference.
2013-10-11 22:51:38 +08:00
bernard a124e7bd22 add initialization debug code 2013-07-24 07:33:48 +08:00
Bernard Xiong 79392bb082 Embedded GPLv2 license. 2013-06-24 17:06:09 +08:00
dzzxzz@gmail.com cd053e7737 re-format the coding style, convert the tab to 4 spaces and make sure the line length is not longer than 80 in rtdebug.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2271 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-05 06:52:35 +00:00
dzzxzz@gmail.com f897cff83f fixed a compiling error if RT_DEBUG is defined but RT_DEBUG_CONTEXT_CHECK is defined as 0
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2270 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-05 06:28:28 +00:00
bernard.xiong@gmail.com 87195cf84e Added memory heap object implementation; Added RT_LIST_OBJECT_INIT macro.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2046 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-14 03:52:56 +00:00
dzzxzz 12b5e56f46 unify the coding style of kernel
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-17 06:43:49 +00:00
dzzxzz 7926109356 cleanup kernel code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1722 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-23 05:57:31 +00:00
bernard.xiong@gmail.com ee68988518 change the RT_DEBUG_NOT_REENT to RT_DEBUG_NOT_IN_INTERRUPT.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1503 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-14 23:59:42 +00:00
mbbill@gmail.com 1aa724b5d8 fixd a compiler error in rtdebug.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1497 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-13 02:40:24 +00:00
mbbill@gmail.com 864bd11802 Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-12 10:01:48 +00:00