diff options
| author | tangweikang <[email protected]> | 2019-08-30 16:11:46 +0800 |
|---|---|---|
| committer | tangweikang <[email protected]> | 2019-08-30 16:11:46 +0800 |
| commit | 0f74ee7e20cf8c54ec967da7f6ac1ab472a723a2 (patch) | |
| tree | 7f22179e6b844e1106f6bf30a606cb1d9620ba7a /libcpu | |
| parent | b76d3dac8a92b36993169e5d38a6960b3210af04 (diff) | |
| parent | 779d86f1daba7e7118e58419e669d4c2d91968b1 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into drv_encoder
# Conflicts:
# components/drivers/misc/encoder.c
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; |
