Skip to content

Commit b216ceb

Browse files
committed
Removed unused code.
1 parent 1af8404 commit b216ceb

File tree

9 files changed

+39
-261
lines changed

9 files changed

+39
-261
lines changed

ports/rxv1/ccrx/src/tx_thread_system_return.src

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
;/* FUNCTION RELEASE */
4141
;/* */
4242
;/* _tx_thread_system_return RXv1/CCRX */
43-
;/* 6.1.8 */
43+
;/* 6.1.9 */
4444
;/* AUTHOR */
4545
;/* */
4646
;/* William E. Lamie, Microsoft Corporation */
@@ -73,54 +73,16 @@
7373
;/* DATE NAME DESCRIPTION */
7474
;/* */
7575
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
76+
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
77+
;/* removed unused code, */
78+
;/* resulting in version 6.1.9 */
7679
;/* */
7780
;/**************************************************************************/
7881
;VOID _tx_thread_system_return(VOID)
7982
;{
8083
.GLB __tx_thread_system_return
8184
__tx_thread_system_return:
82-
;
83-
; /* Save call save registers on the stack. */
84-
;
85-
PUSHM R6-R13
86-
PUSHC PSW
87-
MOV.L #0, R1
88-
PUSH.L R1 ; solicited stack frame
89-
;
90-
; /* Lockout interrupts. */
91-
;
92-
CLRPSW I ; Lockout interrupts
93-
;
94-
; /* Save current stack in current Thread controle block. */
95-
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
96-
MOV.L #__tx_thread_current_ptr, R2
97-
MOV.L [R2], R3
98-
MOV.L R0, 8[R3]
99-
100-
MOV.L #__tx_timer_time_slice, R4
101-
MOV.L [R4], R5
10285

103-
; /* Determine if the time-slice is active. */
104-
; if (_tx_timer_time_slice)
105-
; {
106-
;
107-
CMP #0,R5 ; Is a time-slice present?
108-
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
109-
;
110-
; /* Save time-slice for the thread and clear the current time-slice. */
111-
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
112-
MOV.L R5,24[R3]
113-
; _tx_timer_time_slice = 0;
114-
;
115-
MOV.L R1, [R4] ; Disable the time-slice
116-
;
117-
; }
118-
__tx_thread_dont_save_ts:
119-
;
120-
; /* Clear the current thread pointer. */
121-
; _tx_thread_current_ptr = TX_NULL;
122-
;
123-
MOV.L R1, [R2]
12486
BRA __tx_thread_schedule
12587
;}
12688
.END

ports/rxv1/gnu/src/tx_thread_system_return.S

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
;/* FUNCTION RELEASE */
3131
;/* */
3232
;/* _tx_thread_system_return RXv1/GNURX */
33-
;/* 6.1.8 */
33+
;/* 6.1.9 */
3434
;/* AUTHOR */
3535
;/* */
3636
;/* William E. Lamie, Microsoft Corporation */
@@ -63,55 +63,17 @@
6363
;/* DATE NAME DESCRIPTION */
6464
;/* */
6565
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
66+
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
67+
;/* removed unused code, */
68+
;/* resulting in version 6.1.9 */
6669
;/* */
6770
;/**************************************************************************/
6871
;VOID _tx_thread_system_return(VOID)
6972
;{
7073
.GLB __tx_thread_system_return
7174
__tx_thread_system_return:
72-
;
73-
; /* Save call save registers on the stack. */
74-
;
75-
PUSHM R6-R13
76-
PUSHC PSW
77-
MOV.L #0, R1
78-
PUSH.L R1 ; solicited stack frame
79-
;
80-
; /* Lockout interrupts. */
81-
;
82-
CLRPSW I ; Lockout interrupts
83-
;
84-
; /* Save current stack in current Thread controle block. */
85-
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
86-
MOV.L #__tx_thread_current_ptr, R2
87-
MOV.L [R2], R3
88-
MOV.L R0, 8[R3]
89-
90-
MOV.L #__tx_timer_time_slice, R4
91-
MOV.L [R4], R5
9275

93-
; /* Determine if the time-slice is active. */
94-
; if (_tx_timer_time_slice)
95-
; {
96-
;
97-
CMP #0,R5 ; Is a time-slice present?
98-
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
99-
;
100-
; /* Save time-slice for the thread and clear the current time-slice. */
101-
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
102-
MOV.L R5,24[R3]
103-
; _tx_timer_time_slice = 0;
104-
;
105-
MOV.L R1, [R4] ; Disable the time-slice
106-
;
107-
; }
108-
__tx_thread_dont_save_ts:
109-
;
110-
; /* Clear the current thread pointer. */
111-
; _tx_thread_current_ptr = TX_NULL;
112-
;
113-
MOV.L R1, [R2]
114-
BRA __tx_thread_schedule
76+
BRA __tx_thread_system_return
11577
;}
11678
.end
11779

ports/rxv1/iar/src/tx_thread_system_return.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
;/* FUNCTION RELEASE */
2828
;/* */
2929
;/* _tx_thread_system_return RXv1/IAR */
30-
;/* 6.1.8 */
30+
;/* 6.1.9 */
3131
;/* AUTHOR */
3232
;/* */
3333
;/* William E. Lamie, Microsoft Corporation */
@@ -60,6 +60,8 @@
6060
;/* DATE NAME DESCRIPTION */
6161
;/* */
6262
;/* 08-02-2021 William E. Lamie Initial Version 6.1.8 */
63+
;/* 10-15-2021 William E. Lamie Modified comment(s), */
64+
;/* resulting in version 6.1.9 */
6365
;/* */
6466
;/**************************************************************************/
6567

ports/rxv2/ccrx/src/tx_thread_system_return.src

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
;/* FUNCTION RELEASE */
4141
;/* */
4242
;/* _tx_thread_system_return RXv2/CCRX */
43-
;/* 6.1.3 */
43+
;/* 6.1.9 */
4444
;/* AUTHOR */
4545
;/* */
4646
;/* William E. Lamie, Microsoft Corporation */
@@ -73,55 +73,17 @@
7373
;/* DATE NAME DESCRIPTION */
7474
;/* */
7575
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
76+
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
77+
;/* removed unused code, */
78+
;/* resulting in version 6.1.9 */
7679
;/* */
7780
;/**************************************************************************/
7881
;VOID _tx_thread_system_return(VOID)
7982
;{
8083
.GLB __tx_thread_system_return
8184
__tx_thread_system_return:
82-
;
83-
; /* Save call save registers on the stack. */
84-
;
85-
PUSHM R6-R13
86-
PUSHC PSW
87-
MOV.L #0, R1
88-
PUSH.L R1 ; solicited stack frame
89-
;
90-
; /* Lockout interrupts. */
91-
;
92-
CLRPSW I ; Lockout interrupts
93-
;
94-
; /* Save current stack in current Thread controle block. */
95-
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
96-
MOV.L #__tx_thread_current_ptr, R2
97-
MOV.L [R2], R3
98-
MOV.L R0, 8[R3]
99-
100-
MOV.L #__tx_timer_time_slice, R4
101-
MOV.L [R4], R5
10285

103-
; /* Determine if the time-slice is active. */
104-
; if (_tx_timer_time_slice)
105-
; {
106-
;
107-
CMP #0,R5 ; Is a time-slice present?
108-
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
109-
;
110-
; /* Save time-slice for the thread and clear the current time-slice. */
111-
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
112-
MOV.L R5,24[R3]
113-
; _tx_timer_time_slice = 0;
114-
;
115-
MOV.L R1, [R4] ; Disable the time-slice
116-
;
117-
; }
118-
__tx_thread_dont_save_ts:
119-
;
120-
; /* Clear the current thread pointer. */
121-
; _tx_thread_current_ptr = TX_NULL;
122-
;
123-
MOV.L R1, [R2]
124-
BRA __tx_thread_schedule
86+
BRA __tx_thread_system_return
12587
;}
12688
.END
12789

ports/rxv2/gnu/src/tx_thread_system_return.S

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
;/* FUNCTION RELEASE */
3131
;/* */
3232
;/* _tx_thread_system_return RXv2/GNURX */
33-
;/* 6.1.3 */
33+
;/* 6.1.9 */
3434
;/* AUTHOR */
3535
;/* */
3636
;/* William E. Lamie, Microsoft Corporation */
@@ -63,54 +63,16 @@
6363
;/* DATE NAME DESCRIPTION */
6464
;/* */
6565
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
66+
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
67+
;/* removed unused code, */
68+
;/* resulting in version 6.1.9 */
6669
;/* */
6770
;/**************************************************************************/
6871
;VOID _tx_thread_system_return(VOID)
6972
;{
7073
.GLB __tx_thread_system_return
7174
__tx_thread_system_return:
72-
;
73-
; /* Save call save registers on the stack. */
74-
;
75-
PUSHM R6-R13
76-
PUSHC PSW
77-
MOV.L #0, R1
78-
PUSH.L R1 ; solicited stack frame
79-
;
80-
; /* Lockout interrupts. */
81-
;
82-
CLRPSW I ; Lockout interrupts
83-
;
84-
; /* Save current stack in current Thread controle block. */
85-
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
86-
MOV.L #__tx_thread_current_ptr, R2
87-
MOV.L [R2], R3
88-
MOV.L R0, 8[R3]
89-
90-
MOV.L #__tx_timer_time_slice, R4
91-
MOV.L [R4], R5
9275

93-
; /* Determine if the time-slice is active. */
94-
; if (_tx_timer_time_slice)
95-
; {
96-
;
97-
CMP #0,R5 ; Is a time-slice present?
98-
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
99-
;
100-
; /* Save time-slice for the thread and clear the current time-slice. */
101-
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
102-
MOV.L R5,24[R3]
103-
; _tx_timer_time_slice = 0;
104-
;
105-
MOV.L R1, [R4] ; Disable the time-slice
106-
;
107-
; }
108-
__tx_thread_dont_save_ts:
109-
;
110-
; /* Clear the current thread pointer. */
111-
; _tx_thread_current_ptr = TX_NULL;
112-
;
113-
MOV.L R1, [R2]
11476
BRA __tx_thread_schedule
11577
;}
11678
.end

ports/rxv2/iar/src/tx_thread_system_return.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
;/* FUNCTION RELEASE */
2828
;/* */
2929
;/* _tx_thread_system_return RXv2/IAR */
30-
;/* 6.1.3 */
30+
;/* 6.1.9 */
3131
;/* AUTHOR */
3232
;/* */
3333
;/* William E. Lamie, Microsoft Corporation */
@@ -60,6 +60,8 @@
6060
;/* DATE NAME DESCRIPTION */
6161
;/* */
6262
;/* 12-31-2020 William E. Lamie Initial Version 6.1.3 */
63+
;/* 10-15-2021 William E. Lamie Modified comment(s), */
64+
;/* resulting in version 6.1.9 */
6365
;/* */
6466
;/**************************************************************************/
6567

ports/rxv3/ccrx/src/tx_thread_system_return.src

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
;/* FUNCTION RELEASE */
4141
;/* */
4242
;/* _tx_thread_system_return RXv3/CCRX */
43-
;/* 6.x */
43+
;/* 6.1.9 */
4444
;/* AUTHOR */
4545
;/* */
4646
;/* William E. Lamie, Microsoft Corporation */
@@ -72,56 +72,18 @@
7272
;/* */
7373
;/* DATE NAME DESCRIPTION */
7474
;/* */
75-
;/* xx-xx-xxxx William E. Lamie Initial Version 6.x */
75+
;/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
76+
;/* 10-15-2021 William E. Lamie Modified comment(s), and */
77+
;/* removed unused code, */
78+
;/* resulting in version 6.1.9 */
7679
;/* */
7780
;/**************************************************************************/
7881
;VOID _tx_thread_system_return(VOID)
7982
;{
8083
.GLB __tx_thread_system_return
8184
__tx_thread_system_return:
82-
;
83-
; /* Save call save registers on the stack. */
84-
;
85-
PUSHM R6-R13
86-
PUSHC PSW
87-
MOV.L #0, R1
88-
PUSH.L R1 ; solicited stack frame
89-
;
90-
; /* Lockout interrupts. */
91-
;
92-
CLRPSW I ; Lockout interrupts
93-
;
94-
; /* Save current stack in current Thread controle block. */
95-
; _tx_thread_current_ptr -> tx_thread_stack_ptr = SP;
96-
MOV.L #__tx_thread_current_ptr, R2
97-
MOV.L [R2], R3
98-
MOV.L R0, 8[R3]
99-
100-
MOV.L #__tx_timer_time_slice, R4
101-
MOV.L [R4], R5
10285

103-
; /* Determine if the time-slice is active. */
104-
; if (_tx_timer_time_slice)
105-
; {
106-
;
107-
CMP #0,R5 ; Is a time-slice present?
108-
BEQ __tx_thread_dont_save_ts ; No, don't save the time-slice
109-
;
110-
; /* Save time-slice for the thread and clear the current time-slice. */
111-
; _tx_thread_current_ptr -> tx_thread_time_slice = _tx_timer_time_slice;
112-
MOV.L R5,24[R3]
113-
; _tx_timer_time_slice = 0;
114-
;
115-
MOV.L R1, [R4] ; Disable the time-slice
116-
;
117-
; }
118-
__tx_thread_dont_save_ts:
119-
;
120-
; /* Clear the current thread pointer. */
121-
; _tx_thread_current_ptr = TX_NULL;
122-
;
123-
MOV.L R1, [R2]
124-
BRA __tx_thread_schedule
86+
BRA __tx_thread_system_return
12587
;}
12688
.END
12789

0 commit comments

Comments
 (0)