summaryrefslogtreecommitdiffstats
path: root/fxn.S
blob: b5b80f72bc96fc88508019564cc66cf656233116 (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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
/* -*- asm -*- ----------------------------------------------------------- *
 *   
 *   Copyright 2013 H. Peter Anvin - All Rights Reserved
 *
 *   Permission is hereby granted, free of charge, to any person
 *   obtaining a copy of this software and associated documentation
 *   files (the "Software"), to deal in the Software without
 *   restriction, including without limitation the rights to use,
 *   copy, modify, merge, publish, distribute, sublicense, and/or
 *   sell copies of the Software, and to permit persons to whom
 *   the Software is furnished to do so, subject to the following
 *   conditions:
 *   
 *   The above copyright notice and this permission notice shall
 *   be included in all copies or substantial portions of the Software.
 *   
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *   OTHER DEALINGS IN THE SOFTWARE.
 *
 * ----------------------------------------------------------------------- */

#include "v9fs.h"

	.code16
	.section ".rtext","ax"

/* ------------------------------------------------------------------------- *
 *  fxn_chdir
 * ------------------------------------------------------------------------- */

	.globl fxn_chdir
fxn_chdir:
	stc
	retw

	.size fxn_chdir,.-fxn_chdir
	.type fxn_chdir,@function

/* ------------------------------------------------------------------------- *
 *  fxn_closefile
 * ------------------------------------------------------------------------- */

	.globl fxn_closefile
fxn_closefile:
	stc
	retw

	.size fxn_closefile,.-fxn_closefile
	.type fxn_closefile,@function

/* ------------------------------------------------------------------------- *
 *  fxn_commitfile
 * ------------------------------------------------------------------------- */

	.globl fxn_commitfile
fxn_commitfile:
	stc
	retw

	.size fxn_commitfile,.-fxn_commitfile
	.type fxn_commitfile,@function

/* ------------------------------------------------------------------------- *
 *  fxn_create
 * ------------------------------------------------------------------------- */

	.globl fxn_create
fxn_create:
	stc
	retw

	.size fxn_create,.-fxn_create
	.type fxn_create,@function

/* ------------------------------------------------------------------------- *
 *  fxn_delete
 * ------------------------------------------------------------------------- */

	.globl fxn_delete
fxn_delete:
	stc
	retw

	.size fxn_delete,.-fxn_delete
	.type fxn_delete,@function

/* ------------------------------------------------------------------------- *
 *  fxn_diskspace
 * ------------------------------------------------------------------------- */

	.globl fxn_diskspace
fxn_diskspace:
	stc
	retw

	.size fxn_diskspace,.-fxn_diskspace
	.type fxn_diskspace,@function

/* ------------------------------------------------------------------------- *
 *  fxn_findfirst
 * ------------------------------------------------------------------------- */

	.globl fxn_findfirst
fxn_findfirst:
	stc
	retw

	.size fxn_findfirst,.-fxn_findfirst
	.type fxn_findfirst,@function

/* ------------------------------------------------------------------------- *
 *  fxn_findnext
 * ------------------------------------------------------------------------- */

	.globl fxn_findnext
fxn_findnext:
	stc
	retw

	.size fxn_findnext,.-fxn_findnext
	.type fxn_findnext,@function

/* ------------------------------------------------------------------------- *
 *  fxn_getattr
 * ------------------------------------------------------------------------- */

	.globl fxn_getattr
fxn_getattr:
	stc
	retw

	.size fxn_getattr,.-fxn_getattr
	.type fxn_getattr,@function

/* ------------------------------------------------------------------------- *
 *  fxn_inquiry
 *
 *  Indicate that a redirector is present, but that more can be installed.
 * ------------------------------------------------------------------------- */

	.globl fxn_inquiry
fxn_inquiry:
	movb $0xff,F_AL		/* Redirector installed, OK to install more */
	xorw %ax,%ax		/* No error (AX=0), no chain (CF=0) */
	retw

	.size fxn_inquiry,.-fxn_inquiry
	.type fxn_inquiry,@function

/* ------------------------------------------------------------------------- *
 *  fxn_lockfile
 * ------------------------------------------------------------------------- */

	.globl fxn_lockfile
fxn_lockfile:
	stc
	retw

	.size fxn_lockfile,.-fxn_lockfile
	.type fxn_lockfile,@function

/* ------------------------------------------------------------------------- *
 *  fxn_mkdir
 * ------------------------------------------------------------------------- */

	.globl fxn_mkdir
fxn_mkdir:
	stc
	retw

	.size fxn_mkdir,.-fxn_mkdir
	.type fxn_mkdir,@function

/* ------------------------------------------------------------------------- *
 *  fxn_open
 * ------------------------------------------------------------------------- */

	.globl fxn_open
fxn_open:
	stc
	retw

	.size fxn_open,.-fxn_open
	.type fxn_open,@function

/* ------------------------------------------------------------------------- *
 *  fxn_qualify
 *
 *  Qualify a pathname.  Just return failure and let DOS do the default.
 * ------------------------------------------------------------------------- */

	.globl fxn_qualify
fxn_qualify:
	movl $0x06060001,%eax
	clc
	retw

	.size fxn_qualify,.-fxn_qualify
	.type fxn_qualify,@function

/* ------------------------------------------------------------------------- *
 *  fxn_readfile
 * ------------------------------------------------------------------------- */

	.globl fxn_readfile
fxn_readfile:
	stc
	retw

	.size fxn_readfile,.-fxn_readfile
	.type fxn_readfile,@function

/* ------------------------------------------------------------------------- *
 *  fxn_rename
 * ------------------------------------------------------------------------- */

	.globl fxn_rename
fxn_rename:
	stc
	retw

	.size fxn_rename,.-fxn_rename
	.type fxn_rename,@function

/* ------------------------------------------------------------------------- *
 *  fxn_rmdir
 * ------------------------------------------------------------------------- */

	.globl fxn_rmdir
fxn_rmdir:
	stc
	retw

	.size fxn_rmdir,.-fxn_rmdir
	.type fxn_rmdir,@function

/* ------------------------------------------------------------------------- *
 *  fxn_setattr
 * ------------------------------------------------------------------------- */

	.globl fxn_setattr
fxn_setattr:
	stc
	retw

	.size fxn_setattr,.-fxn_setattr
	.type fxn_setattr,@function

/* ------------------------------------------------------------------------- *
 *  fxn_skfmend
 * ------------------------------------------------------------------------- */

	.globl fxn_skfmend
fxn_skfmend:
	stc
	retw

	.size fxn_skfmend,.-fxn_skfmend
	.type fxn_skfmend,@function

/* ------------------------------------------------------------------------- *
 *  fxn_spopenfile
 * ------------------------------------------------------------------------- */

	.globl fxn_spopenfile
fxn_spopenfile:
	stc
	retw

	.size fxn_spopenfile,.-fxn_spopenfile
	.type fxn_spopenfile,@function

/* ------------------------------------------------------------------------- *
 *  fxn_unknown_2d
 * ------------------------------------------------------------------------- */

	.globl fxn_unknown_2d
fxn_unknown_2d:
	movw $2,F_AX		/* This is what MSCDEX returns */
	xorw %ax,%ax		/* No error (AX=0), no chain (CF=0) */
	retw

	.size fxn_unknown_2d,.-fxn_unknown_2d
	.type fxn_unknown_2d,@function

/* ------------------------------------------------------------------------- *
 *  fxn_unlockfile
 * ------------------------------------------------------------------------- */

	.globl fxn_unlockfile
fxn_unlockfile:
	stc
	retw

	.size fxn_unlockfile,.-fxn_unlockfile
	.type fxn_unlockfile,@function

/* ------------------------------------------------------------------------- *
 *  fxn_writefile
 * ------------------------------------------------------------------------- */

	.globl fxn_writefile
fxn_writefile:
	stc
	retw

	.size fxn_writefile,.-fxn_writefile
	.type fxn_writefile,@function