summaryrefslogtreecommitdiff
path: root/bsp/sam7x
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-12 10:01:48 +0000
committer[email protected] <[email protected]>2011-06-12 10:01:48 +0000
commit864bd1180237c952beefda21266c3f76f288b99a (patch)
tree0d437761b4efee23c50b0a6e88e6a664fd55b2cf /bsp/sam7x
parent8c3d1e5eaec88d77a2fe623e9d478b9542bad040 (diff)
Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/sam7x')
-rw-r--r--bsp/sam7x/startup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsp/sam7x/startup.c b/bsp/sam7x/startup.c
index abf9b58c51..fd822c71ed 100644
--- a/bsp/sam7x/startup.c
+++ b/bsp/sam7x/startup.c
@@ -74,6 +74,8 @@ void led_flash()
*/
void rtthread_startup(void)
{
+ RT_DEBUG_REENT_IN
+
/* init hardware interrupt */
rt_hw_interrupt_init();
@@ -133,6 +135,8 @@ void rtthread_startup(void)
/* init idle thread */
rt_thread_idle_init();
+ RT_DEBUG_REENT_OUT
+
/* start scheduler */
rt_system_scheduler_start();