Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/voyager make this compile again; macallan, pleas...



details:   https://anonhg.NetBSD.org/src/rev/678000abc622
branches:  trunk
changeset: 786815:678000abc622
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 13 16:01:31 2013 +0000

description:
make this compile again; macallan, please commit the right fix!

diffstat:

 sys/dev/pci/voyager/pwmclock.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r a601ebe2879a -r 678000abc622 sys/dev/pci/voyager/pwmclock.c
--- a/sys/dev/pci/voyager/pwmclock.c    Mon May 13 15:47:18 2013 +0000
+++ b/sys/dev/pci/voyager/pwmclock.c    Mon May 13 16:01:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pwmclock.c,v 1.8 2013/04/16 09:04:24 macallan Exp $    */
+/*     $NetBSD: pwmclock.c,v 1.9 2013/05/13 16:01:31 christos Exp $    */
 
 /*
  * Copyright (c) 2011 Michael Lorenz
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pwmclock.c,v 1.8 2013/04/16 09:04:24 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pwmclock.c,v 1.9 2013/05/13 16:01:31 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -77,7 +77,6 @@
 
 struct pwmclock_softc *pwmclock;
 extern void (*initclocks_ptr)(void);
-extern struct clockframe cf;
 
 /* 0, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8, 1 */
 static int scale_m[] = {1, 1, 3, 1, 5, 3, 7, 1};
@@ -306,7 +305,14 @@
        if (sc->sc_step_wanted != sc->sc_step) {
                sc->sc_step = sc->sc_step_wanted;
        }
+#ifdef notyet
+       struct clockframe cf;
+                
+       cf.pc = pc;
+       cf.sr = status;
+       cf.intr = (curcpu()->ci_idepth > 1);
        hardclock(&cf);
+#endif
 
        return 1;
 }



Home | Main Index | Thread Index | Old Index