Repository: incubator-mynewt-larva Updated Branches: refs/heads/master a54dc9f15 -> f125be6e1
Fix cortex-m0 PendSV handler bug Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/f125be6e Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/f125be6e Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/f125be6e Branch: refs/heads/master Commit: f125be6e16d5e7ed05de80dd0c3a45eedd9e3073 Parents: a54dc9f Author: wes3 <w...@micosa.io> Authored: Mon Feb 1 12:39:06 2016 -0800 Committer: wes3 <w...@micosa.io> Committed: Mon Feb 1 12:39:06 2016 -0800 ---------------------------------------------------------------------- libs/os/src/arch/cortex_m0/m0/HAL_CM0.s | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/f125be6e/libs/os/src/arch/cortex_m0/m0/HAL_CM0.s ---------------------------------------------------------------------- diff --git a/libs/os/src/arch/cortex_m0/m0/HAL_CM0.s b/libs/os/src/arch/cortex_m0/m0/HAL_CM0.s index 0f833e1..e34695a 100644 --- a/libs/os/src/arch/cortex_m0/m0/HAL_CM0.s +++ b/libs/os/src/arch/cortex_m0/m0/HAL_CM0.s @@ -177,6 +177,7 @@ context_switch: MOV R6,R10 MOV R7,R11 STMIA R0!,{R4-R7} /* Save Old context */ + SUBS R0,R0,#32 STR R0,[R1,#0] /* Update stack pointer in current task */ STR R2,[R3] /* g_current_task = highest ready */