Wrap mips3_cp0_count_read() stuff (for DECstation 5000/150) with
#if defined(MIPS3) so that kernel config without options MIPS3 compiles. Problem reported by Erik Bertelsen on port-pmax.
This commit is contained in:
parent
45e0220f34
commit
767de2b348
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: dec_3min.c,v 1.59 2008/01/03 23:02:25 joerg Exp $ */
|
/* $NetBSD: dec_3min.c,v 1.60 2008/03/15 08:50:08 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.59 2008/01/03 23:02:25 joerg Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.60 2008/03/15 08:50:08 tsutsui Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -502,6 +502,7 @@ kn02ba_wbflush()
|
||||||
void
|
void
|
||||||
dec_3min_tc_init(void)
|
dec_3min_tc_init(void)
|
||||||
{
|
{
|
||||||
|
#if defined(MIPS3)
|
||||||
static struct timecounter tc = {
|
static struct timecounter tc = {
|
||||||
.tc_get_timecount = (timecounter_get_t *)mips3_cp0_count_read,
|
.tc_get_timecount = (timecounter_get_t *)mips3_cp0_count_read,
|
||||||
.tc_counter_mask = ~0u,
|
.tc_counter_mask = ~0u,
|
||||||
|
@ -517,4 +518,5 @@ dec_3min_tc_init(void)
|
||||||
|
|
||||||
tc_init(&tc);
|
tc_init(&tc);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue