Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147318766
D5183.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5183.id.diff
View Options
Index: head/sys/mips/mips/tick.c
===================================================================
--- head/sys/mips/mips/tick.c
+++ head/sys/mips/mips/tick.c
@@ -51,6 +51,10 @@
#include <machine/locore.h>
#include <machine/md_var.h>
+#ifdef MIPS_INTRNG
+#include <machine/intr.h>
+#endif
+
uint64_t counter_freq;
struct timecounter *platform_timecounter;
@@ -324,12 +328,18 @@
clock_attach(device_t dev)
{
struct clock_softc *sc;
+#ifndef MIPS_INTRNG
int error;
+#endif
if (device_get_unit(dev) != 0)
panic("can't attach more clocks");
softc = sc = device_get_softc(dev);
+#ifdef MIPS_INTRNG
+ cpu_establish_hardintr("clock", clock_intr, NULL, sc, 5, INTR_TYPE_CLK,
+ NULL);
+#else
sc->intr_rid = 0;
sc->intr_res = bus_alloc_resource(dev,
SYS_RES_IRQ, &sc->intr_rid, 5, 5, 1, RF_ACTIVE);
@@ -343,6 +353,7 @@
device_printf(dev, "bus_setup_intr returned %d\n", error);
return (error);
}
+#endif
sc->tc.tc_get_timecount = counter_get_timecount;
sc->tc.tc_counter_mask = 0xffffffff;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 10, 10:35 PM (8 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29516425
Default Alt Text
D5183.id.diff (1 KB)
Attached To
Mode
D5183: Proper attachment for MIPS ticker when using INTRNG
Attached
Detach File
Event Timeline
Log In to Comment