From 864bd1180237c952beefda21266c3f76f288b99a Mon Sep 17 00:00:00 2001 From: "mbbill@gmail.com" Date: Sun, 12 Jun 2011 10:01:48 +0000 Subject: Add reentrance check. Put kernel debug switch together. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/debug.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/debug.c (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c new file mode 100644 index 0000000000..3edbdf5dc7 --- /dev/null +++ b/src/debug.c @@ -0,0 +1,28 @@ +/* + * File : debug.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rt-thread.org/license/LICENSE + * + * Change Logs: + * Date Author Notes + * 2011-06 11 mbbill first version + */ + +#include +#include + + +/** + * @addtogroup Kernel + */ + +/*@{*/ +#ifdef RT_DEBUG +rt_uint8_t rt_debug_reent_cnt = 0; +#endif + +/*@}*/ -- cgit v1.3.1