Skip to content

Commit 30a7a9a

Browse files
committed
Use some more descriptive names for parameters of VDI_* macros
1 parent 8c327f6 commit 30a7a9a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

gem_vdiP.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
static inline void
2424
_vdi_trap_esc (VDIPB * vdipb,
25-
long cntrl_0_1, long cntrl_3, long cntrl_5, short handle)
25+
long cntrl_0_1, long cntrl_2_3, long cntrl_4_5, short handle)
2626
{
2727
__asm__ volatile (
2828
"movea.l %0,%%a0\n\t" /* &vdipb */
@@ -35,12 +35,12 @@ _vdi_trap_esc (VDIPB * vdipb,
3535
"move.w #115,%%d0\n\t" /* 0x0073 */
3636
"trap #2"
3737
:
38-
: "g"(vdipb), "g"(cntrl_0_1), "g"(cntrl_3), "g"(cntrl_5), "g"(handle)
38+
: "g"(vdipb), "g"(cntrl_0_1), "g"(cntrl_2_3), "g"(cntrl_4_5), "g"(handle)
3939
: "d0", "d1", "d2", "a0", "a1", "a2", "memory", "cc"
4040
);
4141
}
42-
#define VDI_TRAP_ESC(vdipb, handle, opcode, subop, cntrl_1, cntrl_3) \
43-
_vdi_trap_esc (&vdipb, (opcode##uL<<16)|cntrl_1, cntrl_3, subop, handle)
42+
#define VDI_TRAP_ESC(vdipb, handle, opcode, subop, nptsin, nintin) \
43+
_vdi_trap_esc (&vdipb, (opcode##uL<<16)|nptsin, nintin, subop, handle)
4444

4545
static inline void
4646
_vdi_trap_00 (VDIPB * vdipb, long cntrl_0_1, short handle)
@@ -83,8 +83,8 @@ __regsused("d0/d1/a0/a1") void _vdi_trap_esc(
8383
"\tmove.l\t(sp)+,a2\n"
8484
"\tmove.l\t(sp)+,d2";
8585

86-
#define VDI_TRAP_ESC(vdipb, handle, opcode, subop, cntrl_1, cntrl_3) \
87-
_vdi_trap_esc (&vdipb, (opcode##uL<<16)|cntrl_1, cntrl_3, subop, handle)
86+
#define VDI_TRAP_ESC(vdipb, handle, opcode, subop, nptsin, nintin) \
87+
_vdi_trap_esc (&vdipb, (opcode##uL<<16)|nptsin, nintin, subop, handle)
8888

8989
__regsused("d0/d1/a0/a1") void _vdi_trap_00(
9090
__reg("a0")VDIPB *,__reg("d0")long,__reg("d1")short) =
@@ -107,10 +107,10 @@ __regsused("d0/d1/a0/a1") void _vdi_trap_00(
107107

108108
#else /* no usage of inlines, go the old way */
109109

110-
#define VDI_TRAP_ESC(vdipb, handle, opcode, subop, cntrl_1, cntrl_3) \
110+
#define VDI_TRAP_ESC(vdipb, handle, opcode, subop, nptsin, nintin) \
111111
vdipb.control[0] = opcode; \
112-
vdipb.control[1] = cntrl_1; \
113-
vdipb.control[3] = cntrl_3; \
112+
vdipb.control[1] = nptsin; \
113+
vdipb.control[3] = nintin; \
114114
vdipb.control[5] = subop; \
115115
vdipb.control[6] = handle; \
116116
vdi (&vdipb);
@@ -121,8 +121,8 @@ __regsused("d0/d1/a0/a1") void _vdi_trap_00(
121121
#endif
122122

123123

124-
#define VDI_TRAP(vdipb, handle, opcode, cntrl_1, cntrl_3) \
125-
VDI_TRAP_ESC(vdipb, handle, opcode, 0, cntrl_1, cntrl_3)
124+
#define VDI_TRAP(vdipb, handle, opcode, nptsin, nintin) \
125+
VDI_TRAP_ESC(vdipb, handle, opcode, 0, nptsin, nintin)
126126

127127
#define VDI_PARAMS(a,b,c,d,e) \
128128
VDIPB vdi_params; \

0 commit comments

Comments
 (0)