summaryrefslogtreecommitdiff
path: root/graphics/Mesa/patches/patch-ae
blob: 8913c165a536057aa8c3bbedb67e30366d869d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
$NetBSD: patch-ae,v 1.1 1999/10/27 13:47:30 tron Exp $

--- src/asm_386.S.orig	Wed Jul  8 22:50:13 1998
+++ src/asm_386.S	Tue Oct 26 00:46:37 1999
@@ -57,13 +57,17 @@
  * Change this to .data if your system doesn't have .rodata
  */
 #ifndef RODATA
-#if defined(FREEBSD) || defined(__EMX__)
+#if defined(FREEBSD) || defined(__EMX__) || (defined(__NetBSD__) && !defined(__ELF__))
 #define RODATA .data
 #else
 #define RODATA 	.section .rodata
 #endif
 #endif
 
+#if defined(FREEBSD) || (defined(__NetBSD__) && !defined(__ELF__))
+#define PREPEND_UNDERSCORE
+#endif
+
 #ifndef DATA
 #define DATA 	.data
 #endif
@@ -81,7 +85,7 @@
  * void asm_transform_points3_general( GLuint n, GLfloat d[][4],
  *                                     GLfloat m[16], GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points3_general)
 ALIGN
 _asm_transform_points3_general:
@@ -218,7 +222,7 @@
  * void asm_transform_points3_identity( GLuint n, GLfloat d[][4],
  *                                      GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points3_identity)
 ALIGN
 _asm_transform_points3_identity:
@@ -264,7 +268,7 @@
  * void asm_transform_points3_2d( GLuint n, GLfloat d[][4], GLfloat m[16],
  *                                GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points3_2d)
 ALIGN
 _asm_transform_points3_2d:
@@ -404,7 +408,7 @@
  *                                       GLfloat m[16], GLfloat s[][4] );
  *
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points3_2d_no_rot)
 ALIGN
 _asm_transform_points3_2d_no_rot:
@@ -459,7 +463,7 @@
  * void asm_transform_points3_3d( GLuint n, GLfloat d[][4], GLfloat m[16],
  *                                GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points3_3d)
 ALIGN
 _asm_transform_points3_3d:
@@ -572,7 +576,7 @@
  * void asm_transform_points4_general( GLuint n, GLfloat d[][4],
  *                                     GLfloat m[16], GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_general)
 ALIGN
 _asm_transform_points4_general:
@@ -728,7 +732,7 @@
  * void asm_transform_points4_identity( GLuint n, GLfloat d[][4],
  *                                      GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_identity)
 ALIGN
 _asm_transform_points4_identity:
@@ -758,7 +762,7 @@
  * void asm_transform_points4_2d( GLuint n, GLfloat d[][4], GLfloat m[16],
  *                                GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_2d)
 ALIGN
 _asm_transform_points4_2d:
@@ -829,7 +833,7 @@
  * void asm_transform_points4_2d_no_rot( GLuint n, GLfloat d[][4],
  *                                       GLfloat m[16], GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_2d_no_rot)
 ALIGN
 _asm_transform_points4_2d_no_rot:
@@ -883,7 +887,7 @@
  * void asm_transform_points4_3d( GLuint n, GLfloat d[][4], GLfloat m[16],
  *                                GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_3d)
 ALIGN
 _asm_transform_points4_3d:
@@ -1015,7 +1019,7 @@
  * void asm_transform_points4_ortho( GLuint n, GLfloat d[][4],
  *                                   GLfloat m[16], GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_ortho)
 ALIGN
 _asm_transform_points4_ortho:
@@ -1073,7 +1077,7 @@
  * void asm_transform_points4_perspective( GLuint n, GLfloat d[][4],
  *                                         GLfloat m[16], GLfloat s[][4] );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_transform_points4_perspective)
 ALIGN
 _asm_transform_points4_perspective:
@@ -1313,7 +1317,7 @@
  *                                        GLfloat s[][4], GLubyte clipmask[],
  *                                        GLubyte *ormask, GLubyte *andmask );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_project_and_cliptest_general)
 ALIGN
 _asm_project_and_cliptest_general:
@@ -1333,7 +1337,7 @@
 	pushl %edx
 	pushl %edi
 	pushl %ecx
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 	call _asm_transform_points4_general
 #else
 	call asm_transform_points4_general
@@ -1366,7 +1370,7 @@
  *                                         GLfloat s[][4], GLubyte clipmask[],
  *                                         GLubyte *ormask, GLubyte *andmask );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_project_and_cliptest_identity)
 ALIGN
 _asm_project_and_cliptest_identity:
@@ -1384,7 +1388,7 @@
 	pushl %esi
 	pushl %edi
 	pushl %ecx
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 	call _asm_transform_points4_identity
 #else
 	call asm_transform_points4_identity
@@ -1416,7 +1420,7 @@
  *                                      GLfloat s[][4], GLubyte clipmask[],
  *                                      GLubyte *ormask, GLubyte *andmask );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_project_and_cliptest_ortho)
 ALIGN
 _asm_project_and_cliptest_ortho:
@@ -1436,7 +1440,7 @@
 	pushl %edx
 	pushl %edi
 	pushl %ecx
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 	call _asm_transform_points4_ortho
 #else
 	call asm_transform_points4_ortho
@@ -1468,7 +1472,7 @@
  *                                            GLfloat s[][4], GLubyte clipmask[],
  *                                            GLubyte *ormask, GLubyte *andmask );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_asm_project_and_cliptest_perspective)
 ALIGN
 _asm_project_and_cliptest_perspective:
@@ -1488,7 +1492,7 @@
 	pushl %edx
 	pushl %edi
 	pushl %ecx
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 	call _asm_transform_points4_perspective
 #else
 	call asm_transform_points4_perspective
@@ -1575,7 +1579,7 @@
  *                            GLfloat s[][4], GLboolean normalize,
  *                            GLboolean rescale );
  */
-#ifdef FREEBSD
+#ifdef PREPEND_UNDERSCORE
 GLOBAL(_gl_xform_normals_3fv)
 ALIGN
 _gl_xform_normals_3fv: