diff options
| author | [email protected] <[email protected]> | 2011-06-12 10:01:48 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-12 10:01:48 +0000 |
| commit | 864bd1180237c952beefda21266c3f76f288b99a (patch) | |
| tree | 0d437761b4efee23c50b0a6e88e6a664fd55b2cf /bsp | |
| parent | 8c3d1e5eaec88d77a2fe623e9d478b9542bad040 (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')
| -rw-r--r-- | bsp/mini2440/startup.c | 12 | ||||
| -rw-r--r-- | bsp/sam7x/startup.c | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/bsp/mini2440/startup.c b/bsp/mini2440/startup.c index e9e237987d..915eced9af 100644 --- a/bsp/mini2440/startup.c +++ b/bsp/mini2440/startup.c @@ -69,6 +69,8 @@ extern void finsh_system_init(void); */ void rtthread_startup(void) { + RT_DEBUG_REENT_IN + /* enable cpu cache */ rt_hw_cpu_icache_enable(); rt_hw_cpu_dcache_enable(); @@ -81,7 +83,7 @@ void rtthread_startup(void) /* show version */ rt_show_version(); - + /* init tick */ rt_system_tick_init(); @@ -116,11 +118,11 @@ void rtthread_startup(void) rt_hw_serial_register(&uart2_device, "uart2", RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, &uart2); - + #ifdef RT_USING_DFS rt_hw_sdcard_init(); -#ifdef RT_USING_DFS_UFFS
- rt_hw_nand_init();
+#ifdef RT_USING_DFS_UFFS + rt_hw_nand_init(); #endif #endif @@ -147,6 +149,8 @@ void rtthread_startup(void) /* init idle thread */ rt_thread_idle_init(); + RT_DEBUG_REENT_OUT + /* start scheduler */ rt_system_scheduler_start(); 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(); |
