PERFORCE change 103452 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Tue Aug 8 16:06:58 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103452
Change 103452 by gonzo at gonzo_hq on 2006/08/08 16:06:15
o Disable clock device initialization for cpu device
explicitly. Rely on autoconfiguration stuff for that.
Generick ticker code is on it's way.
Affected files ...
.. //depot/projects/mips2/src/sys/mips/mips/cpu.c#14 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/mips/cpu.c#14 (text+ko) ====
@@ -287,16 +287,6 @@
static int
cpu_probe(device_t dev)
{
- device_t clock;
-
- if (device_get_unit(dev) != 0)
- panic("can't attach more cpus");
- device_set_desc(dev, "MIPS32 processor");
-
- clock = device_add_child(dev, "mips32_clock", device_get_unit(dev));
- if (clock == NULL)
- device_printf(dev, "mips32_clock failed to attach");
-
return (0);
}
@@ -304,6 +294,9 @@
cpu_attach(device_t dev)
{
int error;
+#ifdef notyet
+ device_t clock;
+#endif
cpu_hardirq_rman.rm_start = 0;
cpu_hardirq_rman.rm_end = 5;
@@ -324,6 +317,16 @@
return (error);
}
+ if (device_get_unit(dev) != 0)
+ panic("can't attach more cpus");
+ device_set_desc(dev, "MIPS32 processor");
+
+#ifdef notyet
+ clock = device_add_child(dev, "clock", device_get_unit(dev));
+ if (clock == NULL)
+ device_printf(dev, "clock failed to attach");
+#endif
+
return (bus_generic_attach(dev));
}
@@ -355,9 +358,7 @@
intr = rman_get_start(res);
-#if 0
cpu_establish_hardintr(intr, handler, arg);
-#endif
device_printf(child, "established CPU interrupt %d\n", intr);
return (0);
}
More information about the p4-projects
mailing list