Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev Remove (#if 0'ed) m68k asm codes.



details:   https://anonhg.NetBSD.org/src/rev/83cce2650ff8
branches:  trunk
changeset: 513572:83cce2650ff8
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Fri Aug 03 23:09:42 2001 +0000

description:
Remove (#if 0'ed) m68k asm codes.

diffstat:

 sys/arch/macppc/dev/adb_direct.c |  70 +--------------------------------------
 sys/arch/macppc/dev/pm_direct.c  |  28 +---------------
 2 files changed, 3 insertions(+), 95 deletions(-)

diffs (154 lines):

diff -r c175a5e2d4b5 -r 83cce2650ff8 sys/arch/macppc/dev/adb_direct.c
--- a/sys/arch/macppc/dev/adb_direct.c  Fri Aug 03 21:11:57 2001 +0000
+++ b/sys/arch/macppc/dev/adb_direct.c  Fri Aug 03 23:09:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adb_direct.c,v 1.18 2001/06/19 12:02:55 simonb Exp $   */
+/*     $NetBSD: adb_direct.c,v 1.19 2001/08/03 23:09:42 tsubai Exp $   */
 
 /* From: adb_direct.c 2.02 4/18/97 jpw */
 
@@ -286,7 +286,6 @@
 void   adb_read_II __P((u_char *));
 void   adb_hw_setup __P((void));
 void   adb_hw_setup_IIsi __P((u_char *));
-void   adb_comp_exec __P((void));
 int    adb_cmd_result __P((u_char *));
 int    adb_cmd_extra __P((u_char *));
 int    adb_guess_next_device __P((void));
@@ -577,6 +576,7 @@
                if (adb_debug)
                        printf_intr("intr: unknown ADB state\n");
 #endif
+               break;
        }
 
        ADB_VIA_INTR_ENABLE();  /* enable ADB interrupt on IIs. */
@@ -1013,32 +1013,6 @@
                            (void (*)(caddr_t, caddr_t, int))comprout;
 
                        (*f)(buffer, compdata, cmd);
-#if 0
-#ifdef __NetBSD__
-                       asm("   movml #0xffff,sp@-      | save all registers
-                               movl %0,a2              | compdata
-                               movl %1,a1              | comprout
-                               movl %2,a0              | buffer
-                               movl %3,d0              | cmd
-                               jbsr a1@                | go call the routine
-                               movml sp@+,#0xffff      | restore all registers"
-                           :
-                           : "g"(compdata), "g"(comprout),
-                               "g"(buffer), "g"(cmd)
-                           : "d0", "a0", "a1", "a2");
-#else                                  /* for macos based testing */
-                       asm
-                       {
-                               movem.l a0/a1/a2/d0, -(a7)
-                               move.l compdata, a2
-                               move.l comprout, a1
-                               move.l buffer, a0
-                               move.w cmd, d0
-                               jsr(a1)
-                               movem.l(a7)+, d0/a2/a1/a0
-                       }
-#endif
-#endif
                }
 
                s = splhigh();
@@ -1497,46 +1471,6 @@
                splx(s);
 }
 
-
-#if 0
-/*
- * adb_comp_exec
- * This is a general routine that calls the completion routine if there is one.
- * NOTE: This routine is now only used by pm_direct.c
- *       All the code in this file (adb_direct.c) uses 
- *       the adb_pass_up routine now.
- */
-void
-adb_comp_exec(void)
-{
-       if ((long)0 != adbCompRout) /* don't call if empty return location */
-#ifdef __NetBSD__
-               asm("   movml #0xffff,sp@-      | save all registers
-                       movl %0,a2              | adbCompData
-                       movl %1,a1              | adbCompRout
-                       movl %2,a0              | adbBuffer
-                       movl %3,d0              | adbWaitingCmd
-                       jbsr a1@                | go call the routine
-                       movml sp@+,#0xffff      | restore all registers"
-                   :
-                   : "g"(adbCompData), "g"(adbCompRout),
-                       "g"(adbBuffer), "g"(adbWaitingCmd)
-                   : "d0", "a0", "a1", "a2");
-#else /* for Mac OS-based testing */
-               asm {
-                       movem.l a0/a1/a2/d0, -(a7)
-                       move.l adbCompData, a2
-                       move.l adbCompRout, a1
-                       move.l adbBuffer, a0
-                       move.w adbWaitingCmd, d0
-                       jsr(a1)
-                       movem.l(a7) +, d0/a2/a1/a0
-               }
-#endif
-}
-#endif
-
-
 /*
  * adb_cmd_result
  *
diff -r c175a5e2d4b5 -r 83cce2650ff8 sys/arch/macppc/dev/pm_direct.c
--- a/sys/arch/macppc/dev/pm_direct.c   Fri Aug 03 21:11:57 2001 +0000
+++ b/sys/arch/macppc/dev/pm_direct.c   Fri Aug 03 23:09:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pm_direct.c,v 1.13 2001/07/22 11:29:47 wiz Exp $       */
+/*     $NetBSD: pm_direct.c,v 1.14 2001/08/03 23:09:43 tsubai Exp $    */
 
 /*
  * Copyright (C) 1997 Takashi Hamada
@@ -185,9 +185,6 @@
 int    pm_pmgrop_pm2 __P((PMData *));
 void   pm_intr_pm2 __P((void));
 
-/* this function is MRG-Based (for testing) */
-int    pm_pmgrop_mrg __P((PMData *));
-
 /* these functions are called from adb_direct.c */
 void   pm_setup_adb __P((void));
 void   pm_check_adb_devices __P((int));
@@ -902,29 +899,6 @@
 }
 
 
-#if 0
-/*
- * MRG-based PMgrOp routine
- */
-int
-pm_pmgrop_mrg(pmdata)
-       PMData *pmdata;
-{
-       u_int32_t rval=0;
-
-       asm("
-               movl    %1, a0
-               .word   0xa085
-               movl    d0, %0"
-               : "=g" (rval)
-               : "g" (pmdata)
-               : "a0", "d0" );
-
-       return rval;
-}
-#endif
-
-
 /*
  * My PMgrOp routine
  */



Home | Main Index | Thread Index | Old Index