浏览代码

Run init routines from SVC handler

DricomDragon 5 年之前
父节点
当前提交
f9d2579cf8
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      prog/sources/reset-handler-sequential.s

+ 2 - 4
prog/sources/reset-handler-sequential.s

@@ -40,10 +40,8 @@ reset.handler: @ Cortex M4 boots with interrupts enabled, in Thread mode
 @--- Software must use an ISB barrier instruction to ensure a write to the CONTROL register
 @ takes effect before the next instruction is executed.
   isb
-@---------------------------------- Run init routines, interrupt disabled
-  cpsid i              @ Disable interrupts
-  bl    start.phase2
-  cpsie i              @ Enable interrupts
+@---------------------------------- Run init routines, from SVC handler
+  svc	#0
 @---------------------------------- Run setup, loop
   bl    setup.function
 background.task: