浏览代码

[src/components.c]remove the repetitive rt_hw_interrupt_disable() function before rtthread_startup()

yangjie 6 年之前
父节点
当前提交
ce51a27f87
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/components.c

+ 0 - 3
src/components.c

@@ -138,7 +138,6 @@ extern int $Super$$main(void);
 /* re-define main function */
 int $Sub$$main(void)
 {
-    rt_hw_interrupt_disable();
     rtthread_startup();
     return 0;
 }
@@ -150,7 +149,6 @@ int __low_level_init(void)
 {
     // call IAR table copy function.
     __iar_data_init3();
-    rt_hw_interrupt_disable();
     rtthread_startup();
     return 0;
 }
@@ -159,7 +157,6 @@ extern int main(void);
 /* Add -eentry to arm-none-eabi-gcc argument */
 int entry(void)
 {
-    rt_hw_interrupt_disable();
     rtthread_startup();
     return 0;
 }