Port-pmax archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Custom kernel for DS5000 does no longer compile
> My DS5000 can no longer compile its custom-configured kernel, but gives:
>
> compile SOCKDEV/dec_3min.o
> ../../../../arch/pmax/pmax/dec_3min.c: In function 'dec_3min_tc_init':
> ../../../../arch/pmax/pmax/dec_3min.c:506: error:
> 'mips3_cp0_count_read' undeclared (first use in this function)
> ../../../../arch/pmax/pmax/dec_3min.c:506: error: (Each undeclared
> identifier is reported only once
> ../../../../arch/pmax/pmax/dec_3min.c:506: error: for each function it
> appears in.)
Such mips3 stuff (for DS5000/150) should be wrapped
with #if defined(MIPS3)?
---
Izumi Tsutsui
Index: dec_3min.c
===================================================================
RCS file: /cvsroot/src/sys/arch/pmax/pmax/dec_3min.c,v
retrieving revision 1.59
diff -u -r1.59 dec_3min.c
--- dec_3min.c 3 Jan 2008 23:02:25 -0000 1.59
+++ dec_3min.c 14 Mar 2008 13:12:27 -0000
@@ -502,6 +502,7 @@
void
dec_3min_tc_init(void)
{
+#if defined(MIPS3)
static struct timecounter tc = {
.tc_get_timecount = (timecounter_get_t *)mips3_cp0_count_read,
.tc_counter_mask = ~0u,
@@ -517,4 +518,5 @@
tc_init(&tc);
}
+#endif
}
Home |
Main Index |
Thread Index |
Old Index