ObjFW  Check-in [b886536090]

Overview
Comment:Fix a few forgotten of_forward
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | new-naming-convention
Files: files | file ages | folders
SHA3-256: b886536090aa4576bc5c36d5a249cd3758f438aee2ae977b9cf6d4da47e57cd1
User & Date: js on 2021-04-19 20:50:54
Other Links: branch diff | manifest | tags
Context
2021-04-19
21:07
Rename all struct of_* check-in: c81086beeb user: js tags: new-naming-convention
20:50
Fix a few forgotten of_forward check-in: b886536090 user: js tags: new-naming-convention
2021-04-18
23:41
of_memory_barrier -> OFMemoryBarrier check-in: 1cdf56dc9e user: js tags: new-naming-convention
Changes

Modified src/forwarding/forwarding-sparc-elf.S from [8805e8dff7] to [561fb7b970].

13
14
15
16
17
18
19
20
21


22
23
24

25
26
27
28
29
30
31
13
14
15
16
17
18
19


20
21
22
23

24
25
26
27
28
29
30
31







-
-
+
+


-
+







 * file.
 */

#include "config.h"

#include "platform.h"

.globl of_forward
.globl of_forward_stret
.globl OFForward
.globl OFForward_stret

.section .text
of_forward:
OFForward:
	save	%sp, -96, %sp

#ifdef OF_PIC
	sethi	%hi(_GLOBAL_OFFSET_TABLE_ - 4), %l7
	call	add_pc
	 add	%l7, %lo(_GLOBAL_OFFSET_TABLE_ + 4), %l7
#endif
75
76
77
78
79
80
81
82
83


84
85

86
87
88
89
90
91
92
75
76
77
78
79
80
81


82
83
84

85
86
87
88
89
90
91
92







-
-
+
+

-
+








	jmpl	%o0, %g0
	 restore

0:
	call	OFMethodNotFound
	 restore
.type of_forward, %function
.size of_forward, .-of_forward
.type OFForward, %function
.size OFForward, .-OFForward

of_forward_stret:
OFForward_stret:
	save	%sp, -96, %sp

#ifdef OF_PIC
	sethi	%hi(_GLOBAL_OFFSET_TABLE_ - 4), %l7
	call	add_pc
	 add	%l7, %lo(_GLOBAL_OFFSET_TABLE_ + 4), %l7
#endif
136
137
138
139
140
141
142
143
144


145
146
147
148
149
150
151
136
137
138
139
140
141
142


143
144
145
146
147
148
149
150
151







-
-
+
+








	jmpl	%o0, %g0
	 restore

0:
	call	OFMethodNotFound_stret
	 restore
.type of_forward_stret, %function
.size of_forward_stret, .-of_forward_stret
.type OFForward_stret, %function
.size OFForward_stret, .-OFForward_stret

init:
	save	%sp, -96, %sp

#ifdef OF_PIC
	sethi	%hi(_GLOBAL_OFFSET_TABLE_ - 4), %l7
	call	add_pc

Modified src/forwarding/forwarding-sparc64-elf.S from [c2de431dd5] to [bd5584b259].

13
14
15
16
17
18
19
20
21


22
23
24
25
26

27
28
29
30
31
32
33
13
14
15
16
17
18
19


20
21
22
23
24
25

26
27
28
29
30
31
32
33







-
-
+
+




-
+







 * file.
 */

#include "config.h"

#include "platform.h"

.globl of_forward
.globl of_forward_stret
.globl OFForward
.globl OFForward_stret

#define BIAS 2047

.section .text
of_forward:
OFForward:
	save	%sp, -304, %sp

	/*
	 * Save all floating point registers as they can be used for parameter
	 * passing.
	 */
	std	%f0, [%sp + BIAS + 176]
109
110
111
112
113
114
115
116
117


118
119

120
121
122
123
124
125
126
109
110
111
112
113
114
115


116
117
118

119
120
121
122
123
124
125
126







-
-
+
+

-
+








	jmpl	%o0, %g0
	 restore

0:
	call	OFMethodNotFound
	 restore
.type of_forward, %function
.size of_forward, .-of_forward
.type OFForward, %function
.size OFForward, .-OFForward

of_forward_stret:
OFForward_stret:
	save	%sp, -304, %sp

	/*
	 * Save all floating point registers as they can be used for parameter
	 * passing.
	 */
	std	%f0, [%sp + BIAS + 176]
202
203
204
205
206
207
208
209
210


211
212
213
214
215
216
217
202
203
204
205
206
207
208


209
210
211
212
213
214
215
216
217







-
-
+
+








	jmpl	%o0, %g0
	 restore

0:
	call	OFMethodNotFound_stret
	 restore
.type of_forward_stret, %function
.size of_forward_stret, .-of_forward_stret
.type OFForward_stret, %function
.size OFForward_stret, .-OFForward_stret

init:
	save	%sp, -176, %sp

	sethi	%hi(_GLOBAL_OFFSET_TABLE_ - 4), %l7
	call	add_pc
	 add	%l7, %lo(_GLOBAL_OFFSET_TABLE_ + 4), %l7

Modified src/forwarding/forwarding-x86-elf.S from [73f4a139cb] to [b0f736c46b].

13
14
15
16
17
18
19
20
21


22
23
24

25
26
27
28
29
30
31
13
14
15
16
17
18
19


20
21
22
23

24
25
26
27
28
29
30
31







-
-
+
+


-
+







 * file.
 */

#include "config.h"

#include "platform.h"

.globl of_forward
.globl of_forward_stret
.globl OFForward
.globl OFForward_stret

.section .text
of_forward:
OFForward:
	pushl	%ebp
	movl	%esp, %ebp

	pushl	%ebx
	subl	$20, %esp

	call	get_eip
78
79
80
81
82
83
84
85
86


87
88

89
90
91
92
93
94
95
78
79
80
81
82
83
84


85
86
87

88
89
90
91
92
93
94
95







-
-
+
+

-
+







	leal	OFMethodNotFound@GOTOFF(%ebx), %eax

	addl	$20, %esp
	popl	%ebx
	popl	%ebp

	jmp	*%eax
.type of_forward, %function
.size of_forward, .-of_forward
.type OFForward, %function
.size OFForward, .-OFForward

of_forward_stret:
OFForward_stret:
	pushl	%ebp
	movl	%esp, %ebp

	pushl	%ebx
	subl	$20, %esp

	call	get_eip
142
143
144
145
146
147
148
149
150


151
152
153
154
155
156
157
142
143
144
145
146
147
148


149
150
151
152
153
154
155
156
157







-
-
+
+







	leal	OFMethodNotFound_stret@GOTOFF(%ebx), %eax

	addl	$20, %esp
	popl	%ebx
	popl	%ebp

	jmp	*%eax
.type of_forward_stret, %function
.size of_forward_stret, .-of_forward_stret
.type OFForward_stret, %function
.size OFForward_stret, .-OFForward_stret

init:
	pushl	%ebp
	movl	%esp, %ebp

	pushl	%ebx
	subl	$4, %esp