mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57:20 +08:00
[bsp][tms320f28379d] __rt_ffs() problem caused by 16-bit int
This commit is contained in:
@@ -164,6 +164,7 @@ switch_to_thread:
|
||||
;#endif
|
||||
|
||||
MOV @SP, AR1
|
||||
INC SP
|
||||
RT_CTX_RESTORE ; pop r4 - r11 register
|
||||
|
||||
rtosint_exit:
|
||||
|
||||
@@ -79,6 +79,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry,
|
||||
stack_frame->exception_stack_frame.dp_st1 = (0x00000000) | rt_hw_get_st1(); /* 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;
|
||||
|
||||
/* return task's current stack address */
|
||||
return stk + sizeof(struct stack_frame);
|
||||
|
||||
Reference in New Issue
Block a user