diff options
| author | Bernard Xiong <[email protected]> | 2015-04-16 16:47:48 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-04-16 16:47:48 +0800 |
| commit | 21fdff8fbf906dc2d003aca295b13516a9e05367 (patch) | |
| tree | 3be0ca4b598be0b39a560e81efc8c940cd481b23 | |
| parent | ff8332d9dcc5b4ee00c050a660a0c3012beea2a5 (diff) | |
[Kernel] Fix main() issue in Keil MDK
| -rw-r--r-- | src/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/init.c b/src/init.c index 56b7e0bf8d..b697b73180 100644 --- a/src/init.c +++ b/src/init.c @@ -149,13 +149,14 @@ struct rt_thread main_thread; void main_thread_entry(void *parameter) { extern int main(void); + extern int $Super$$main(void); /* RT-Thread components initialization */ rt_components_init(); /* invoke system main function */ #ifdef __CC_ARM - $Sub$$main(); + $Super$$main(); /* for ARMCC. */ #else main(); #endif @@ -183,6 +184,8 @@ void rt_application_init(void) int rtthread_startup(void) { + rt_hw_interrupt_disable(); + /* board level initalization * NOTE: please initialize heap inside board initialization. */ |
