summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-06-19 04:13:15 +0800
committerGitHub <[email protected]>2019-06-19 04:13:15 +0800
commit7dd1cd42dba0570584b5b4302f71c4279ffdd41b (patch)
tree385cbbad3c74bbeb3fa94899db8a61f5f91a772a /libcpu
parent559f94f879d4fdc20b47ef6bf8fd48da6058dc1e (diff)
parent21d32cdb3abe15f495b88cfaa18e1441357137ed (diff)
Merge pull request #2794 from zhaohengbo/master
[libcpu][c28x] Fix bugs of old c28x interrupt api
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/ti-dsp/c28x/context.s7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcpu/ti-dsp/c28x/context.s b/libcpu/ti-dsp/c28x/context.s
index 2b853a0075..f0555d6d35 100644
--- a/libcpu/ti-dsp/c28x/context.s
+++ b/libcpu/ti-dsp/c28x/context.s
@@ -73,7 +73,9 @@ RT_CTX_RESTORE .macro
;
.asmfunc
_rt_hw_interrupt_disable:
- DINT
+ PUSH ST1
+ SETC INTM,DBGM
+ MOV AL, *--SP
LRETR
.endasmfunc
@@ -82,7 +84,8 @@ _rt_hw_interrupt_disable:
;
.asmfunc
_rt_hw_interrupt_enable:
- EINT
+ MOV *SP++, AL
+ POP ST1
LRETR
.endasmfunc