2222
2323static 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
4545static 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