Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcarm/sa11x0 Remove useless DEBUG code.



details:   https://anonhg.NetBSD.org/src/rev/9c5f73b14328
branches:  trunk
changeset: 511578:9c5f73b14328
user:      toshii <toshii%NetBSD.org@localhost>
date:      Fri Jun 22 01:29:26 2001 +0000

description:
Remove useless DEBUG code.

diffstat:

 sys/arch/hpcarm/sa11x0/sa11x0.c |  24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)

diffs (45 lines):

diff -r 1b1321d441e0 -r 9c5f73b14328 sys/arch/hpcarm/sa11x0/sa11x0.c
--- a/sys/arch/hpcarm/sa11x0/sa11x0.c   Fri Jun 22 00:01:47 2001 +0000
+++ b/sys/arch/hpcarm/sa11x0/sa11x0.c   Fri Jun 22 01:29:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sa11x0.c,v 1.10 2001/06/20 02:19:55 toshii Exp $       */
+/*     $NetBSD: sa11x0.c,v 1.11 2001/06/22 01:29:26 toshii Exp $       */
 
 /*-
  * Copyright (c) 2001, The NetBSD Foundation, Inc.  All rights reserved.
@@ -93,24 +93,6 @@
 
 extern int SetCPSR(int, int);
 
-#ifdef DEBUG  /* XXX */
-extern int sacomcncharpoll();
-
-int hoge(void *p)
-{
-       static int i = 0;
-       int c = sacomcncharpoll();
-       *(u_int32_t *)0xd0001010 = 8 | 2;       /* clear intr status bit */
-
-       i++;
-       if (! (i & 7))
-               printf("h %ld.%03ld\n", time.tv_sec, time.tv_usec / 1000);
-       if (c == 1)
-               cpu_Debugger();
-       return 1;
-}
-#endif
-
 /*
  * int sa11x0_print(void *aux, const char *name)
  * print configuration info for children
@@ -201,10 +183,6 @@
        bus_space_write_4(sc->sc_iot, sc->sc_dmach, SADMAC_DCR4_CLR, 1);
        bus_space_write_4(sc->sc_iot, sc->sc_dmach, SADMAC_DCR5_CLR, 1);
 
-#ifdef DEBUG  /* XXX */
-       sa11x0_intr_establish(0, 30, 1, IPL_HIGH, hoge, 0);
-       *((u_int32_t *)0xd0001010) = 0x8;
-#endif
        /*
         * XXX this is probably a bad place, but intr bit shouldn't be
         * XXX enabled before intr mask is set.



Home | Main Index | Thread Index | Old Index