mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 04:24:48 +00:00
Removed unused code.
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv1/CCRX */
|
;/* _tx_thread_system_return RXv1/CCRX */
|
||||||
;/* 6.1.8 */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -73,54 +73,16 @@
|
|||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
|
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
|
||||||
|
;/* removed unused code, */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
;VOID _tx_thread_system_return(VOID)
|
;VOID _tx_thread_system_return(VOID)
|
||||||
;{
|
;{
|
||||||
.GLB __tx_thread_system_return
|
.GLB __tx_thread_system_return
|
||||||
__tx_thread_system_return:
|
__tx_thread_system_return:
|
||||||
;
|
|
||||||
; /* Save call save registers on the stack. */
|
|
||||||
;
|
|
||||||
PUSHM R6-R13
|
|
||||||
PUSHC PSW
|
|
||||||
MOV.L #0, R1
|
|
||||||
PUSH.L R1 ; solicited stack frame
|
|
||||||
;
|
|
||||||
; /* Lockout interrupts. */
|
|
||||||
;
|
|
||||||
CLRPSW I ; Lockout interrupts
|
|
||||||
;
|
|
||||||
; /* Save current stack in current Thread controle block. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
|
|
||||||
MOV.L #__tx_thread_current_ptr, R2
|
|
||||||
MOV.L [R2], R3
|
|
||||||
MOV.L R0, 8[R3]
|
|
||||||
|
|
||||||
MOV.L #__tx_timer_time_slice, R4
|
|
||||||
MOV.L [R4], R5
|
|
||||||
|
|
||||||
; /* Determine if the time-slice is active. */
|
|
||||||
; if (_tx_timer_time_slice)
|
|
||||||
; {
|
|
||||||
;
|
|
||||||
CMP #0,R5 ; Is a time-slice present?
|
|
||||||
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
|
|
||||||
;
|
|
||||||
; /* Save time-slice for the thread and clear the current time-slice. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
|
|
||||||
MOV.L R5,24[R3]
|
|
||||||
; _tx_timer_time_slice = 0;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R4] ; Disable the time-slice
|
|
||||||
;
|
|
||||||
; }
|
|
||||||
__tx_thread_dont_save_ts:
|
|
||||||
;
|
|
||||||
; /* Clear the current thread pointer. */
|
|
||||||
; _tx_thread_current_ptr = TX_NULL;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R2]
|
|
||||||
BRA __tx_thread_schedule
|
BRA __tx_thread_schedule
|
||||||
;}
|
;}
|
||||||
.END
|
.END
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv1/GNURX */
|
;/* _tx_thread_system_return RXv1/GNURX */
|
||||||
;/* 6.1.8 */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -63,55 +63,17 @@
|
|||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
|
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
|
||||||
|
;/* removed unused code, */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
;VOID _tx_thread_system_return(VOID)
|
;VOID _tx_thread_system_return(VOID)
|
||||||
;{
|
;{
|
||||||
.GLB __tx_thread_system_return
|
.GLB __tx_thread_system_return
|
||||||
__tx_thread_system_return:
|
__tx_thread_system_return:
|
||||||
;
|
|
||||||
; /* Save call save registers on the stack. */
|
|
||||||
;
|
|
||||||
PUSHM R6-R13
|
|
||||||
PUSHC PSW
|
|
||||||
MOV.L #0, R1
|
|
||||||
PUSH.L R1 ; solicited stack frame
|
|
||||||
;
|
|
||||||
; /* Lockout interrupts. */
|
|
||||||
;
|
|
||||||
CLRPSW I ; Lockout interrupts
|
|
||||||
;
|
|
||||||
; /* Save current stack in current Thread controle block. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
|
|
||||||
MOV.L #__tx_thread_current_ptr, R2
|
|
||||||
MOV.L [R2], R3
|
|
||||||
MOV.L R0, 8[R3]
|
|
||||||
|
|
||||||
MOV.L #__tx_timer_time_slice, R4
|
BRA __tx_thread_system_return
|
||||||
MOV.L [R4], R5
|
|
||||||
|
|
||||||
; /* Determine if the time-slice is active. */
|
|
||||||
; if (_tx_timer_time_slice)
|
|
||||||
; {
|
|
||||||
;
|
|
||||||
CMP #0,R5 ; Is a time-slice present?
|
|
||||||
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
|
|
||||||
;
|
|
||||||
; /* Save time-slice for the thread and clear the current time-slice. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
|
|
||||||
MOV.L R5,24[R3]
|
|
||||||
; _tx_timer_time_slice = 0;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R4] ; Disable the time-slice
|
|
||||||
;
|
|
||||||
; }
|
|
||||||
__tx_thread_dont_save_ts:
|
|
||||||
;
|
|
||||||
; /* Clear the current thread pointer. */
|
|
||||||
; _tx_thread_current_ptr = TX_NULL;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R2]
|
|
||||||
BRA __tx_thread_schedule
|
|
||||||
;}
|
;}
|
||||||
.end
|
.end
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv1/IAR */
|
;/* _tx_thread_system_return RXv1/IAR */
|
||||||
;/* 6.1.8 */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -60,6 +60,8 @@
|
|||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
|
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv2/CCRX */
|
;/* _tx_thread_system_return RXv2/CCRX */
|
||||||
;/* 6.1.3 */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -73,55 +73,17 @@
|
|||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
|
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
|
||||||
|
;/* removed unused code, */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
;VOID _tx_thread_system_return(VOID)
|
;VOID _tx_thread_system_return(VOID)
|
||||||
;{
|
;{
|
||||||
.GLB __tx_thread_system_return
|
.GLB __tx_thread_system_return
|
||||||
__tx_thread_system_return:
|
__tx_thread_system_return:
|
||||||
;
|
|
||||||
; /* Save call save registers on the stack. */
|
|
||||||
;
|
|
||||||
PUSHM R6-R13
|
|
||||||
PUSHC PSW
|
|
||||||
MOV.L #0, R1
|
|
||||||
PUSH.L R1 ; solicited stack frame
|
|
||||||
;
|
|
||||||
; /* Lockout interrupts. */
|
|
||||||
;
|
|
||||||
CLRPSW I ; Lockout interrupts
|
|
||||||
;
|
|
||||||
; /* Save current stack in current Thread controle block. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
|
|
||||||
MOV.L #__tx_thread_current_ptr, R2
|
|
||||||
MOV.L [R2], R3
|
|
||||||
MOV.L R0, 8[R3]
|
|
||||||
|
|
||||||
MOV.L #__tx_timer_time_slice, R4
|
|
||||||
MOV.L [R4], R5
|
|
||||||
|
|
||||||
; /* Determine if the time-slice is active. */
|
BRA __tx_thread_system_return
|
||||||
; if (_tx_timer_time_slice)
|
|
||||||
; {
|
|
||||||
;
|
|
||||||
CMP #0,R5 ; Is a time-slice present?
|
|
||||||
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
|
|
||||||
;
|
|
||||||
; /* Save time-slice for the thread and clear the current time-slice. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
|
|
||||||
MOV.L R5,24[R3]
|
|
||||||
; _tx_timer_time_slice = 0;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R4] ; Disable the time-slice
|
|
||||||
;
|
|
||||||
; }
|
|
||||||
__tx_thread_dont_save_ts:
|
|
||||||
;
|
|
||||||
; /* Clear the current thread pointer. */
|
|
||||||
; _tx_thread_current_ptr = TX_NULL;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R2]
|
|
||||||
BRA __tx_thread_schedule
|
|
||||||
;}
|
;}
|
||||||
.END
|
.END
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv2/GNURX */
|
;/* _tx_thread_system_return RXv2/GNURX */
|
||||||
;/* 6.1.3 */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -63,54 +63,16 @@
|
|||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
|
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
|
||||||
|
;/* removed unused code, */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
;VOID _tx_thread_system_return(VOID)
|
;VOID _tx_thread_system_return(VOID)
|
||||||
;{
|
;{
|
||||||
.GLB __tx_thread_system_return
|
.GLB __tx_thread_system_return
|
||||||
__tx_thread_system_return:
|
__tx_thread_system_return:
|
||||||
;
|
|
||||||
; /* Save call save registers on the stack. */
|
|
||||||
;
|
|
||||||
PUSHM R6-R13
|
|
||||||
PUSHC PSW
|
|
||||||
MOV.L #0, R1
|
|
||||||
PUSH.L R1 ; solicited stack frame
|
|
||||||
;
|
|
||||||
; /* Lockout interrupts. */
|
|
||||||
;
|
|
||||||
CLRPSW I ; Lockout interrupts
|
|
||||||
;
|
|
||||||
; /* Save current stack in current Thread controle block. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
|
|
||||||
MOV.L #__tx_thread_current_ptr, R2
|
|
||||||
MOV.L [R2], R3
|
|
||||||
MOV.L R0, 8[R3]
|
|
||||||
|
|
||||||
MOV.L #__tx_timer_time_slice, R4
|
|
||||||
MOV.L [R4], R5
|
|
||||||
|
|
||||||
; /* Determine if the time-slice is active. */
|
|
||||||
; if (_tx_timer_time_slice)
|
|
||||||
; {
|
|
||||||
;
|
|
||||||
CMP #0,R5 ; Is a time-slice present?
|
|
||||||
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
|
|
||||||
;
|
|
||||||
; /* Save time-slice for the thread and clear the current time-slice. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
|
|
||||||
MOV.L R5,24[R3]
|
|
||||||
; _tx_timer_time_slice = 0;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R4] ; Disable the time-slice
|
|
||||||
;
|
|
||||||
; }
|
|
||||||
__tx_thread_dont_save_ts:
|
|
||||||
;
|
|
||||||
; /* Clear the current thread pointer. */
|
|
||||||
; _tx_thread_current_ptr = TX_NULL;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R2]
|
|
||||||
BRA __tx_thread_schedule
|
BRA __tx_thread_schedule
|
||||||
;}
|
;}
|
||||||
.end
|
.end
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv2/IAR */
|
;/* _tx_thread_system_return RXv2/IAR */
|
||||||
;/* 6.1.3 */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -60,6 +60,8 @@
|
|||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
|
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv3/CCRX */
|
;/* _tx_thread_system_return RXv3/CCRX */
|
||||||
;/* 6.x */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -72,56 +72,18 @@
|
|||||||
;/* */
|
;/* */
|
||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* xx-xx-xxxx William E. Lamie Initial Version 6.x */
|
;/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
|
||||||
|
;/* removed unused code, */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
;VOID _tx_thread_system_return(VOID)
|
;VOID _tx_thread_system_return(VOID)
|
||||||
;{
|
;{
|
||||||
.GLB __tx_thread_system_return
|
.GLB __tx_thread_system_return
|
||||||
__tx_thread_system_return:
|
__tx_thread_system_return:
|
||||||
;
|
|
||||||
; /* Save call save registers on the stack. */
|
|
||||||
;
|
|
||||||
PUSHM R6-R13
|
|
||||||
PUSHC PSW
|
|
||||||
MOV.L #0, R1
|
|
||||||
PUSH.L R1 ; solicited stack frame
|
|
||||||
;
|
|
||||||
; /* Lockout interrupts. */
|
|
||||||
;
|
|
||||||
CLRPSW I ; Lockout interrupts
|
|
||||||
;
|
|
||||||
; /* Save current stack in current Thread controle block. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
|
|
||||||
MOV.L #__tx_thread_current_ptr, R2
|
|
||||||
MOV.L [R2], R3
|
|
||||||
MOV.L R0, 8[R3]
|
|
||||||
|
|
||||||
MOV.L #__tx_timer_time_slice, R4
|
|
||||||
MOV.L [R4], R5
|
|
||||||
|
|
||||||
; /* Determine if the time-slice is active. */
|
BRA __tx_thread_system_return
|
||||||
; if (_tx_timer_time_slice)
|
|
||||||
; {
|
|
||||||
;
|
|
||||||
CMP #0,R5 ; Is a time-slice present?
|
|
||||||
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
|
|
||||||
;
|
|
||||||
; /* Save time-slice for the thread and clear the current time-slice. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
|
|
||||||
MOV.L R5,24[R3]
|
|
||||||
; _tx_timer_time_slice = 0;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R4] ; Disable the time-slice
|
|
||||||
;
|
|
||||||
; }
|
|
||||||
__tx_thread_dont_save_ts:
|
|
||||||
;
|
|
||||||
; /* Clear the current thread pointer. */
|
|
||||||
; _tx_thread_current_ptr = TX_NULL;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R2]
|
|
||||||
BRA __tx_thread_schedule
|
|
||||||
;}
|
;}
|
||||||
.END
|
.END
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv3/GNURX */
|
;/* _tx_thread_system_return RXv3/GNURX */
|
||||||
;/* 6.x */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -72,55 +72,17 @@
|
|||||||
;/* */
|
;/* */
|
||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* xx-xx-xxxx William E. Lamie Initial Version 6.x */
|
;/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
|
||||||
|
;/* removed unused code, */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
;VOID _tx_thread_system_return(VOID)
|
;VOID _tx_thread_system_return(VOID)
|
||||||
;{
|
;{
|
||||||
.GLB __tx_thread_system_return
|
.GLB __tx_thread_system_return
|
||||||
__tx_thread_system_return:
|
__tx_thread_system_return:
|
||||||
;
|
|
||||||
; /* Save call save registers on the stack. */
|
|
||||||
;
|
|
||||||
PUSHM R6-R13
|
|
||||||
PUSHC PSW
|
|
||||||
MOV.L #0, R1
|
|
||||||
PUSH.L R1 ; solicited stack frame
|
|
||||||
;
|
|
||||||
; /* Lockout interrupts. */
|
|
||||||
;
|
|
||||||
CLRPSW I ; Lockout interrupts
|
|
||||||
;
|
|
||||||
; /* Save current stack in current Thread controle block. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
|
|
||||||
MOV.L #__tx_thread_current_ptr, R2
|
|
||||||
MOV.L [R2], R3
|
|
||||||
MOV.L R0, 8[R3]
|
|
||||||
|
|
||||||
MOV.L #__tx_timer_time_slice, R4
|
|
||||||
MOV.L [R4], R5
|
|
||||||
|
|
||||||
; /* Determine if the time-slice is active. */
|
|
||||||
; if (_tx_timer_time_slice)
|
|
||||||
; {
|
|
||||||
;
|
|
||||||
CMP #0,R5 ; Is a time-slice present?
|
|
||||||
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
|
|
||||||
;
|
|
||||||
; /* Save time-slice for the thread and clear the current time-slice. */
|
|
||||||
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
|
|
||||||
MOV.L R5,24[R3]
|
|
||||||
; _tx_timer_time_slice = 0;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R4] ; Disable the time-slice
|
|
||||||
;
|
|
||||||
; }
|
|
||||||
__tx_thread_dont_save_ts:
|
|
||||||
;
|
|
||||||
; /* Clear the current thread pointer. */
|
|
||||||
; _tx_thread_current_ptr = TX_NULL;
|
|
||||||
;
|
|
||||||
MOV.L R1, [R2]
|
|
||||||
BRA __tx_thread_schedule
|
BRA __tx_thread_schedule
|
||||||
;}
|
;}
|
||||||
.end
|
.end
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
;/* FUNCTION RELEASE */
|
;/* FUNCTION RELEASE */
|
||||||
;/* */
|
;/* */
|
||||||
;/* _tx_thread_system_return RXv3/IAR */
|
;/* _tx_thread_system_return RXv3/IAR */
|
||||||
;/* 6.x */
|
;/* 6.1.9 */
|
||||||
;/* AUTHOR */
|
;/* AUTHOR */
|
||||||
;/* */
|
;/* */
|
||||||
;/* William E. Lamie, Microsoft Corporation */
|
;/* William E. Lamie, Microsoft Corporation */
|
||||||
@@ -59,7 +59,9 @@
|
|||||||
;/* */
|
;/* */
|
||||||
;/* DATE NAME DESCRIPTION */
|
;/* DATE NAME DESCRIPTION */
|
||||||
;/* */
|
;/* */
|
||||||
;/* xx-xx-xxxx William E. Lamie Initial Version 6.x */
|
;/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
|
||||||
|
;/* 10-15-2021 William E. Lamie Modified comment(s), */
|
||||||
|
;/* resulting in version 6.1.9 */
|
||||||
;/* */
|
;/* */
|
||||||
;/**************************************************************************/
|
;/**************************************************************************/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user