diff options
| author | Bernard Xiong <[email protected]> | 2019-08-26 13:47:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 13:47:56 +0800 |
| commit | a712f6804f20159583f89d820c7fa43c0538840b (patch) | |
| tree | 167eda959d67fcf650e87f92fe044610f7a47029 /libcpu | |
| parent | a9866f9372fb4c8639b6865b11d505336f71b02c (diff) | |
| parent | a101327d24f9deed087e8c1421ca50b9f45e4203 (diff) | |
Merge pull request #3004 from xuzhuoyi/tms320-int-bugfix
[bsp][tms320f28379d] Fix an issue that interrupts are disabled in the thread
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/ti-dsp/c28x/cpuport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/ti-dsp/c28x/cpuport.c b/libcpu/ti-dsp/c28x/cpuport.c index e34556c524..3f88606c65 100644 --- a/libcpu/ti-dsp/c28x/cpuport.c +++ b/libcpu/ti-dsp/c28x/cpuport.c @@ -78,7 +78,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, stack_frame->exception_stack_frame.acc = 0x33332222; stack_frame->exception_stack_frame.ar1_ar0 = 0x00001111 & (unsigned long)parameter; /* ar0 : argument */ stack_frame->exception_stack_frame.p = 0x55554444; /* p */ - stack_frame->exception_stack_frame.dp_st1 = (0x00000000) | rt_hw_get_st1(); /* dp_st1 */ + stack_frame->exception_stack_frame.dp_st1 = (0x00000000) | rt_hw_get_st1() & 0xFFFFFFFE; /* dp_st1 */ stack_frame->exception_stack_frame.dbgstat_ier = 0; /* dbgstat_ier */ stack_frame->exception_stack_frame.return_address = (unsigned long)tentry; /* return_address */ stack_frame->rpc = (unsigned long)texit; |
