VirtualBox

source: vbox/trunk/include/iprt/asm-amd64-x86-watcom-32.h@ 76585

Last change on this file since 76585 was 76585, checked in by vboxsync, 6 years ago

*: scm --fix-header-guard-endif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.7 KB
Line 
1/** @file
2 * IPRT - AMD64 and x86 Specific Assembly Functions, 32-bit Watcom C pragma aux.
3 */
4
5/*
6 * Copyright (C) 2006-2019 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef IPRT_INCLUDED_asm_amd64_x86_watcom_32_h
27#define IPRT_INCLUDED_asm_amd64_x86_watcom_32_h
28/* no pragma once */
29
30#ifndef IPRT_INCLUDED_asm_amd64_x86_h
31# error "Don't include this header directly."
32#endif
33
34#ifndef __FLAT__
35# error "Only works with flat pointers! (-mf)"
36#endif
37
38/*
39 * Note! The #undef that preceds the #pragma aux statements is for undoing
40 * the mangling, because the symbol in #pragma aux [symbol] statements
41 * doesn't get subjected to preprocessing. This is also why we include
42 * the watcom header at both the top and the bottom of asm-amd64-x86.h file.
43 */
44
45#undef ASMGetIDTR
46#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
47#pragma aux ASMGetIDTR = \
48 "sidt fword ptr [ecx]" \
49 parm [ecx] \
50 modify exact [];
51#endif
52
53#undef ASMGetIdtrLimit
54#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
55#pragma aux ASMGetIdtrLimit = \
56 "sub esp, 8" \
57 "sidt fword ptr [esp]" \
58 "mov cx, [esp]" \
59 "add esp, 8" \
60 parm [] \
61 value [cx] \
62 modify exact [ecx];
63#endif
64
65#undef ASMSetIDTR
66#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
67#pragma aux ASMSetIDTR = \
68 "lidt fword ptr [ecx]" \
69 parm [ecx] nomemory \
70 modify nomemory;
71#endif
72
73#undef ASMGetGDTR
74#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
75#pragma aux ASMGetGDTR = \
76 "sgdt fword ptr [ecx]" \
77 parm [ecx] \
78 modify exact [];
79#endif
80
81#undef ASMSetGDTR
82#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
83#pragma aux ASMSetGDTR = \
84 "lgdt fword ptr [ecx]" \
85 parm [ecx] nomemory \
86 modify exact [] nomemory;
87#endif
88
89#undef ASMGetCS
90#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
91#pragma aux ASMGetCS = \
92 "mov ax, cs" \
93 parm [] nomemory \
94 value [ax] \
95 modify exact [eax] nomemory;
96#endif
97
98#undef ASMGetDS
99#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
100#pragma aux ASMGetDS = \
101 "mov ax, ds" \
102 parm [] nomemory \
103 value [ax] \
104 modify exact [eax] nomemory;
105#endif
106
107#undef ASMGetES
108#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
109#pragma aux ASMGetES = \
110 "mov ax, es" \
111 parm [] nomemory \
112 value [ax] \
113 modify exact [eax] nomemory;
114#endif
115
116#undef ASMGetFS
117#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
118#pragma aux ASMGetFS = \
119 "mov ax, fs" \
120 parm [] nomemory \
121 value [ax] \
122 modify exact [eax] nomemory;
123#endif
124
125#undef ASMGetGS
126#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
127#pragma aux ASMGetGS = \
128 "mov ax, gs" \
129 parm [] nomemory \
130 value [ax] \
131 modify exact [eax] nomemory;
132#endif
133
134#undef ASMGetSS
135#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
136#pragma aux ASMGetSS = \
137 "mov ax, ss" \
138 parm [] nomemory \
139 value [ax] \
140 modify exact [eax] nomemory;
141#endif
142
143#undef ASMGetTR
144#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
145#pragma aux ASMGetTR = \
146 "str ax" \
147 parm [] nomemory \
148 value [ax] \
149 modify exact [eax] nomemory;
150#endif
151
152#undef ASMGetLDTR
153#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
154#pragma aux ASMGetLDTR = \
155 "sldt ax" \
156 parm [] nomemory \
157 value [ax] \
158 modify exact [eax] nomemory;
159#endif
160
161/** @todo ASMGetSegAttr */
162
163#undef ASMGetFlags
164#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
165#pragma aux ASMGetFlags = \
166 "pushfd" \
167 "pop eax" \
168 parm [] nomemory \
169 value [eax] \
170 modify exact [eax] nomemory;
171#endif
172
173#undef ASMSetFlags
174#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
175#pragma aux ASMSetFlags = \
176 "push eax" \
177 "popfd" \
178 parm [eax] nomemory \
179 modify exact [] nomemory;
180#endif
181
182#undef ASMChangeFlags
183#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
184#pragma aux ASMChangeFlags = \
185 "pushfd" \
186 "pop eax" \
187 "and edx, eax" \
188 "or edx, ecx" \
189 "push edx" \
190 "popfd" \
191 parm [edx] [ecx] nomemory \
192 value [eax] \
193 modify exact [edx] nomemory;
194#endif
195
196#undef ASMAddFlags
197#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
198#pragma aux ASMAddFlags = \
199 "pushfd" \
200 "pop eax" \
201 "or edx, eax" \
202 "push edx" \
203 "popfd" \
204 parm [edx] nomemory \
205 value [eax] \
206 modify exact [edx] nomemory;
207#endif
208
209#undef ASMClearFlags
210#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
211#pragma aux ASMClearFlags = \
212 "pushfd" \
213 "pop eax" \
214 "and edx, eax" \
215 "push edx" \
216 "popfd" \
217 parm [edx] nomemory \
218 value [eax] \
219 modify exact [edx] nomemory;
220#endif
221
222/* Note! Must use the 64-bit integer return value convension.
223 The order of registers in the value [set] does not seem to mean anything. */
224#undef ASMReadTSC
225#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
226#pragma aux ASMReadTSC = \
227 ".586" \
228 "rdtsc" \
229 parm [] nomemory \
230 value [eax edx] \
231 modify exact [edx eax] nomemory;
232#endif
233
234#undef ASMReadTscWithAux
235#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
236#pragma aux ASMReadTscWithAux = \
237 0x0f 0x01 0xf9 \
238 "mov [ebx], ecx" \
239 parm [ebx] \
240 value [eax edx] \
241 modify exact [eax edx ecx];
242#endif
243
244/* ASMCpuId: Implemented externally, too many parameters. */
245/* ASMCpuId_Idx_ECX: Implemented externally, too many parameters. */
246/* ASMCpuIdExSlow: Always implemented externally. */
247
248#undef ASMCpuId_ECX_EDX
249#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
250#pragma aux ASMCpuId_ECX_EDX = \
251 ".586" \
252 "cpuid" \
253 "mov [edi], ecx" \
254 "mov [esi], edx" \
255 parm [eax] [edi] [esi] \
256 modify exact [eax ebx ecx edx];
257#endif
258
259#undef ASMCpuId_EAX
260#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
261#pragma aux ASMCpuId_EAX = \
262 ".586" \
263 "cpuid" \
264 parm [eax] \
265 value [eax] \
266 modify exact [eax ebx ecx edx];
267#endif
268
269#undef ASMCpuId_EBX
270#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
271#pragma aux ASMCpuId_EBX = \
272 ".586" \
273 "cpuid" \
274 parm [eax] \
275 value [ebx] \
276 modify exact [eax ebx ecx edx];
277#endif
278
279#undef ASMCpuId_ECX
280#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
281#pragma aux ASMCpuId_ECX = \
282 ".586" \
283 "cpuid" \
284 parm [eax] \
285 value [ecx] \
286 modify exact [eax ebx ecx edx];
287#endif
288
289#undef ASMCpuId_EDX
290#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
291#pragma aux ASMCpuId_EDX = \
292 ".586" \
293 "cpuid" \
294 parm [eax] \
295 value [edx] \
296 modify exact [eax ebx ecx edx];
297#endif
298
299/* ASMHasCpuId: MSC inline in main source file. */
300
301#undef ASMGetApicId
302#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
303#pragma aux ASMGetApicId = \
304 ".586" \
305 "xor eax, eax" \
306 "cpuid" \
307 "shr ebx,24" \
308 parm [] \
309 value [bl] \
310 modify exact [eax ebx ecx edx];
311#endif
312
313#undef ASMGetCR0
314#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
315#pragma aux ASMGetCR0 = \
316 "mov eax, cr0" \
317 parm [] nomemory \
318 value [eax] \
319 modify exact [eax] nomemory;
320#endif
321
322#undef ASMSetCR0
323#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
324#pragma aux ASMSetCR0 = \
325 "mov cr0, eax" \
326 parm [eax] nomemory \
327 modify exact [] nomemory;
328#endif
329
330#undef ASMGetCR2
331#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
332#pragma aux ASMGetCR2 = \
333 "mov eax, cr2" \
334 parm [] nomemory \
335 value [eax] \
336 modify exact [eax] nomemory;
337#endif
338
339#undef ASMSetCR2
340#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
341#pragma aux ASMSetCR2 = \
342 "mov cr2, eax" \
343 parm [eax] nomemory \
344 modify exact [] nomemory;
345#endif
346
347#undef ASMGetCR3
348#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
349#pragma aux ASMGetCR3 = \
350 "mov eax, cr3" \
351 parm [] nomemory \
352 value [eax] \
353 modify exact [eax] nomemory;
354#endif
355
356#undef ASMSetCR3
357#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
358#pragma aux ASMSetCR3 = \
359 "mov cr3, eax" \
360 parm [eax] nomemory \
361 modify exact [] nomemory;
362#endif
363
364#undef ASMReloadCR3
365#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
366#pragma aux ASMReloadCR3 = \
367 "mov eax, cr3" \
368 "mov cr3, eax" \
369 parm [] nomemory \
370 modify exact [eax] nomemory;
371#endif
372
373#undef ASMGetCR4
374#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
375#pragma aux ASMGetCR4 = \
376 "mov eax, cr4" \
377 parm [] nomemory \
378 value [eax] \
379 modify exact [eax] nomemory;
380#endif
381
382#undef ASMSetCR4
383#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
384#pragma aux ASMSetCR4 = \
385 "mov cr4, eax" \
386 parm [eax] nomemory \
387 modify exact [] nomemory;
388#endif
389
390/* ASMGetCR8: Don't bother for 32-bit. */
391/* ASMSetCR8: Don't bother for 32-bit. */
392
393#undef ASMIntEnable
394#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
395#pragma aux ASMIntEnable = \
396 "sti" \
397 parm [] nomemory \
398 modify exact [] nomemory;
399#endif
400
401#undef ASMIntDisable
402#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
403#pragma aux ASMIntDisable = \
404 "cli" \
405 parm [] nomemory \
406 modify exact [] nomemory;
407#endif
408
409#undef ASMIntDisableFlags
410#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
411#pragma aux ASMIntDisableFlags = \
412 "pushfd" \
413 "cli" \
414 "pop eax" \
415 parm [] nomemory \
416 value [eax] \
417 modify exact [] nomemory;
418#endif
419
420#undef ASMHalt
421#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
422#pragma aux ASMHalt = \
423 "hlt" \
424 parm [] nomemory \
425 modify exact [] nomemory;
426#endif
427
428#undef ASMRdMsr
429#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
430#pragma aux ASMRdMsr = \
431 ".586" \
432 "rdmsr" \
433 parm [ecx] nomemory \
434 value [eax edx] \
435 modify exact [eax edx] nomemory;
436#endif
437
438#undef ASMWrMsr
439#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
440#pragma aux ASMWrMsr = \
441 ".586" \
442 "wrmsr" \
443 parm [ecx] [eax edx] nomemory \
444 modify exact [] nomemory;
445#endif
446
447#undef ASMRdMsrEx
448#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
449#pragma aux ASMRdMsrEx = \
450 ".586" \
451 "rdmsr" \
452 parm [ecx] [edi] nomemory \
453 value [eax edx] \
454 modify exact [eax edx] nomemory;
455#endif
456
457#undef ASMWrMsrEx
458#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
459#pragma aux ASMWrMsrEx = \
460 ".586" \
461 "wrmsr" \
462 parm [ecx] [edi] [eax edx] nomemory \
463 modify exact [] nomemory;
464#endif
465
466#undef ASMRdMsr_Low
467#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
468#pragma aux ASMRdMsr_Low = \
469 ".586" \
470 "rdmsr" \
471 parm [ecx] nomemory \
472 value [eax] \
473 modify exact [eax edx] nomemory;
474#endif
475
476#undef ASMRdMsr_High
477#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
478#pragma aux ASMRdMsr_High = \
479 ".586" \
480 "rdmsr" \
481 parm [ecx] nomemory \
482 value [edx] \
483 modify exact [eax edx] nomemory;
484#endif
485
486
487#undef ASMGetDR0
488#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
489#pragma aux ASMGetDR0 = \
490 "mov eax, dr0" \
491 parm [] nomemory \
492 value [eax] \
493 modify exact [eax] nomemory;
494#endif
495
496#undef ASMGetDR1
497#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
498#pragma aux ASMGetDR1 = \
499 "mov eax, dr1" \
500 parm [] nomemory \
501 value [eax] \
502 modify exact [eax] nomemory;
503#endif
504
505#undef ASMGetDR2
506#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
507#pragma aux ASMGetDR2 = \
508 "mov eax, dr2" \
509 parm [] nomemory \
510 value [eax] \
511 modify exact [eax] nomemory;
512#endif
513
514#undef ASMGetDR3
515#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
516#pragma aux ASMGetDR3 = \
517 "mov eax, dr3" \
518 parm [] nomemory \
519 value [eax] \
520 modify exact [eax] nomemory;
521#endif
522
523#undef ASMGetDR6
524#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
525#pragma aux ASMGetDR6 = \
526 "mov eax, dr6" \
527 parm [] nomemory \
528 value [eax] \
529 modify exact [eax] nomemory;
530#endif
531
532#undef ASMGetAndClearDR6
533#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
534#pragma aux ASMGetAndClearDR6 = \
535 "mov edx, 0ffff0ff0h" \
536 "mov eax, dr6" \
537 "mov dr6, edx" \
538 parm [] nomemory \
539 value [eax] \
540 modify exact [eax edx] nomemory;
541#endif
542
543#undef ASMGetDR7
544#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
545#pragma aux ASMGetDR7 = \
546 "mov eax, dr7" \
547 parm [] nomemory \
548 value [eax] \
549 modify exact [eax] nomemory;
550#endif
551
552#undef ASMSetDR0
553#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
554#pragma aux ASMSetDR0 = \
555 "mov dr0, eax" \
556 parm [eax] nomemory \
557 modify exact [] nomemory;
558#endif
559
560#undef ASMSetDR1
561#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
562#pragma aux ASMSetDR1 = \
563 "mov dr1, eax" \
564 parm [eax] nomemory \
565 modify exact [] nomemory;
566#endif
567
568#undef ASMSetDR2
569#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
570#pragma aux ASMSetDR2 = \
571 "mov dr2, eax" \
572 parm [eax] nomemory \
573 modify exact [] nomemory;
574#endif
575
576#undef ASMSetDR3
577#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
578#pragma aux ASMSetDR3 = \
579 "mov dr3, eax" \
580 parm [eax] nomemory \
581 modify exact [] nomemory;
582#endif
583
584#undef ASMSetDR6
585#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
586#pragma aux ASMSetDR6 = \
587 "mov dr6, eax" \
588 parm [eax] nomemory \
589 modify exact [] nomemory;
590#endif
591
592#undef ASMSetDR7
593#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
594#pragma aux ASMSetDR7 = \
595 "mov dr7, eax" \
596 parm [eax] nomemory \
597 modify exact [] nomemory;
598#endif
599
600/* Yeah, could've used outp here, but this keeps the main file simpler. */
601#undef ASMOutU8
602#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
603#pragma aux ASMOutU8 = \
604 "out dx, al" \
605 parm [dx] [al] nomemory \
606 modify exact [] nomemory;
607#endif
608
609#undef ASMInU8
610#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
611#pragma aux ASMInU8 = \
612 "in al, dx" \
613 parm [dx] nomemory \
614 value [al] \
615 modify exact [] nomemory;
616#endif
617
618#undef ASMOutU16
619#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
620#pragma aux ASMOutU16 = \
621 "out dx, ax" \
622 parm [dx] [ax] nomemory \
623 modify exact [] nomemory;
624#endif
625
626#undef ASMInU16
627#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
628#pragma aux ASMInU16 = \
629 "in ax, dx" \
630 parm [dx] nomemory \
631 value [ax] \
632 modify exact [] nomemory;
633#endif
634
635#undef ASMOutU32
636#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
637#pragma aux ASMOutU32 = \
638 "out dx, eax" \
639 parm [dx] [eax] nomemory \
640 modify exact [] nomemory;
641#endif
642
643#undef ASMInU32
644#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
645#pragma aux ASMInU32 = \
646 "in eax, dx" \
647 parm [dx] nomemory \
648 value [eax] \
649 modify exact [] nomemory;
650#endif
651
652#undef ASMOutStrU8
653#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
654#pragma aux ASMOutStrU8 = \
655 "rep outsb" \
656 parm [dx] [esi] [ecx] nomemory \
657 modify exact [esi ecx] nomemory;
658#endif
659
660#undef ASMInStrU8
661#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
662#pragma aux ASMInStrU8 = \
663 "rep insb" \
664 parm [dx] [edi] [ecx] \
665 modify exact [edi ecx];
666#endif
667
668#undef ASMOutStrU16
669#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
670#pragma aux ASMOutStrU16 = \
671 "rep outsw" \
672 parm [dx] [esi] [ecx] nomemory \
673 modify exact [esi ecx] nomemory;
674#endif
675
676#undef ASMInStrU16
677#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
678#pragma aux ASMInStrU16 = \
679 "rep insw" \
680 parm [dx] [edi] [ecx] \
681 modify exact [edi ecx];
682#endif
683
684#undef ASMOutStrU32
685#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
686#pragma aux ASMOutStrU32 = \
687 "rep outsd" \
688 parm [dx] [esi] [ecx] nomemory \
689 modify exact [esi ecx] nomemory;
690#endif
691
692#undef ASMInStrU32
693#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
694#pragma aux ASMInStrU32 = \
695 "rep insd" \
696 parm [dx] [edi] [ecx] \
697 modify exact [edi ecx];
698#endif
699
700#undef ASMInvalidatePage
701#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
702#pragma aux ASMInvalidatePage = \
703 "invlpg [eax]" \
704 parm [eax] \
705 modify exact [];
706#endif
707
708#undef ASMWriteBackAndInvalidateCaches
709#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
710#pragma aux ASMWriteBackAndInvalidateCaches = \
711 ".486" \
712 "wbinvd" \
713 parm [] nomemory \
714 modify exact [] nomemory;
715#endif
716
717#undef ASMInvalidateInternalCaches
718#ifdef IPRT_ASM_AMD64_X86_WATCOM_32_INSTANTIATE
719#pragma aux ASMInvalidateInternalCaches = \
720 ".486" \
721 "invd" \
722 parm [] \
723 modify exact [];
724#endif
725
726#endif /* !IPRT_INCLUDED_asm_amd64_x86_watcom_32_h */
727
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette