diff options
| author | Bernard Xiong <[email protected]> | 2020-11-25 16:26:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-25 16:26:23 +0800 |
| commit | a83ab9e21d090fe153a74db69a162507e0712987 (patch) | |
| tree | f4df6b2270d09e069d0bea2989abdd94c257b2e6 /libcpu | |
| parent | 7bdb23ee347e91dc7a5b0aba5ab8856a10142237 (diff) | |
| parent | c72c44221d4762e96a5389ed595fca9364ad2646 (diff) | |
Merge pull request #4049 from DavidLin1577/patch-13
Update exception_gcc.S
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/avr32/uc3/exception_gcc.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/avr32/uc3/exception_gcc.S b/libcpu/avr32/uc3/exception_gcc.S index d5051af253..cdf2576f54 100644 --- a/libcpu/avr32/uc3/exception_gcc.S +++ b/libcpu/avr32/uc3/exception_gcc.S @@ -289,7 +289,7 @@ rt_hw_context_switch_interrupt_do: ld.w r12, r12[0] lda.w r11, rt_interrupt_to_thread /* Get new thread SP */ ld.w r11, r11[0] - st.w r12[0], sp /* Store old thead SP */ + st.w r12[0], sp /* Store old thread SP */ ld.w sp, r11[0] /* Load new thread SP */ ldm sp++, r0-r7 /* Pop R0-R7 (new thread) */ rete /* RETE pops R8-R12, LR, PC, SR automatically */ |
