Re: Custom kernel for DS5000 does no longer compile
"Erik Bertelsen" <[email protected]> Sat, 15 Mar 2008 08:16:36 +0100
| Newsgroups | gmane.os.netbsd.ports.pmax |
|---|---|
| Message-ID | <[email protected]> |
2008/3/14, Izumi Tsutsui <[email protected]>: ... > > 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 > } > > I can confirm that my kernel builds and runs with the patch above -- thank you - Erik