Closed zhugengyu closed 3 months ago
i comment below code in tx_port.h,and now it is ok
/* Define the thread timeout setup logic in _tx_thread_create. */
/* #define TX_THREAD_CREATE_TIMEOUT_SETUP(t) (t) -> tx_thread_timer.tx_timer_internal_timeout_function = &(_tx_thread_timeout); \
(t) -> tx_thread_timer.tx_timer_internal_timeout_param = 0; \
(t) -> tx_thread_timer.tx_timer_internal_thread_timeout_ptr = (VOID *) (t); */
/* Define the thread timeout pointer setup in _tx_thread_timeout. */
//#define TX_THREAD_TIMEOUT_POINTER_SETUP(t) (t) = (TX_THREAD *) _tx_timer_expired_timer_ptr -> tx_timer_internal_thread_timeout_ptr;
Describe the bug A clear and concise description of what the bug is.
Hello
ifndef TX_THREAD_TIMEOUT_POINTER_SETUP
define TX_THREAD_TIMEOUT_POINTER_SETUP(t) (t) = TX_ULONG_TO_THREAD_POINTER_CONVERT(timeout_input);
endif
VOID _tx_thread_timeout(ULONG timeout_input) {
TX_INTERRUPT_SAVE_AREA
TX_THREAD thread_ptr; VOID (suspend_cleanup)(struct TX_THREAD_STRUCT *suspend_thread_ptr, ULONG suspension_sequence); ULONG suspension_sequence;
-- disassembly code 00000000801397f8 <_tx_thread_timeout>: 801397f8: a9b97bfd stp x29, x30, [sp, #-112]! 801397fc: 910003fd mov x29, sp 80139800: b9001fe0 str w0, [sp, #28] 80139804: f0000ac0 adrp x0, 80294000 <_tx_queue_created_ptr> 80139808: 910b8000 add x0, x0, #0x2e0 8013980c: f9400000 ldr x0, [x0] 80139810: f9401800 ldr x0, [x0, #48] 80139814: f90037e0 str x0, [sp, #104] 80139818: f94037e2 ldr x2, [sp, #104] 8013981c: b9401fe1 ldr w1, [sp, #28]
Please also mention any information which could help others to understand the problem you're facing:
Which version of Eclipse ThreadX?
What toolchain and environment?
What have you tried to diagnose or workaround this issue?
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Impact What impact does this issue have on your progress (e.g., annoyance, showstopper)
Logs and console output If applicable, add console logs or other types of debug information like Wireshark capture as
.zip
file.Additional context Add any other context about the problem here.