diff options
| author | Tiejun Zhou <[email protected]> | 2021-10-17 10:00:34 +0800 |
|---|---|---|
| committer | Tiejun Zhou <[email protected]> | 2021-10-17 10:00:34 +0800 |
| commit | b216ceb25e2b6ae1ea83c1ae91d114a6fc2fc4ec (patch) | |
| tree | 44389e873074b2f96b50019080f8ed6f4ddab4f0 /ports/rxv2 | |
| parent | 1af8404c54f9c8d3caa2ac3523c2a5f014aecb1c (diff) | |
Removed unused code.v6.1.9_rel
Diffstat (limited to 'ports/rxv2')
| -rw-r--r-- | ports/rxv2/ccrx/src/tx_thread_system_return.src | 48 | ||||
| -rw-r--r-- | ports/rxv2/gnu/src/tx_thread_system_return.S | 46 | ||||
| -rw-r--r-- | ports/rxv2/iar/src/tx_thread_system_return.s | 4 |
3 files changed, 12 insertions, 86 deletions
diff --git a/ports/rxv2/ccrx/src/tx_thread_system_return.src b/ports/rxv2/ccrx/src/tx_thread_system_return.src index 65918cfb..a022fadc 100644 --- a/ports/rxv2/ccrx/src/tx_thread_system_return.src +++ b/ports/rxv2/ccrx/src/tx_thread_system_return.src @@ -40,7 +40,7 @@ ;/* FUNCTION RELEASE */ ;/* */ ;/* _tx_thread_system_return RXv2/CCRX */ -;/* 6.1.3 */ +;/* 6.1.9 */ ;/* AUTHOR */ ;/* */ ;/* William E. Lamie, Microsoft Corporation */ @@ -73,55 +73,17 @@ ;/* DATE NAME DESCRIPTION */ ;/* */ ;/* 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) ;{ .GLB __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_system_return ;} .END diff --git a/ports/rxv2/gnu/src/tx_thread_system_return.S b/ports/rxv2/gnu/src/tx_thread_system_return.S index 93578b5f..43e7023a 100644 --- a/ports/rxv2/gnu/src/tx_thread_system_return.S +++ b/ports/rxv2/gnu/src/tx_thread_system_return.S @@ -30,7 +30,7 @@ ;/* FUNCTION RELEASE */ ;/* */ ;/* _tx_thread_system_return RXv2/GNURX */ -;/* 6.1.3 */ +;/* 6.1.9 */ ;/* AUTHOR */ ;/* */ ;/* William E. Lamie, Microsoft Corporation */ @@ -63,54 +63,16 @@ ;/* DATE NAME DESCRIPTION */ ;/* */ ;/* 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) ;{ .GLB __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 ;} .end diff --git a/ports/rxv2/iar/src/tx_thread_system_return.s b/ports/rxv2/iar/src/tx_thread_system_return.s index 2c907acf..e0be2778 100644 --- a/ports/rxv2/iar/src/tx_thread_system_return.s +++ b/ports/rxv2/iar/src/tx_thread_system_return.s @@ -27,7 +27,7 @@ ;/* FUNCTION RELEASE */ ;/* */ ;/* _tx_thread_system_return RXv2/IAR */ -;/* 6.1.3 */ +;/* 6.1.9 */ ;/* AUTHOR */ ;/* */ ;/* William E. Lamie, Microsoft Corporation */ @@ -60,6 +60,8 @@ ;/* DATE NAME DESCRIPTION */ ;/* */ ;/* 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 */ ;/* */ ;/**************************************************************************/ |
