Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips - use cpu_{g,s}etmodel
details: https://anonhg.NetBSD.org/src/rev/65bb87b8b682
branches: trunk
changeset: 328038:65bb87b8b682
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 24 19:10:34 2014 +0000
description:
- use cpu_{g,s}etmodel
- fix unused
diffstat:
sys/arch/sgimips/dev/scn.c | 21 ++++++++++-----------
sys/arch/sgimips/dev/zs.c | 10 +++++-----
sys/arch/sgimips/sgimips/machdep.c | 7 ++++---
3 files changed, 19 insertions(+), 19 deletions(-)
diffs (156 lines):
diff -r 8af87e06580a -r 65bb87b8b682 sys/arch/sgimips/dev/scn.c
--- a/sys/arch/sgimips/dev/scn.c Mon Mar 24 18:56:43 2014 +0000
+++ b/sys/arch/sgimips/dev/scn.c Mon Mar 24 19:10:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scn.c,v 1.5 2014/03/16 05:20:25 dholland Exp $ */
+/* $NetBSD: scn.c,v 1.6 2014/03/24 19:10:34 christos Exp $ */
/*
* Resurrected from the old pc532 port 1/18/2009.
@@ -92,7 +92,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scn.c,v 1.5 2014/03/16 05:20:25 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scn.c,v 1.6 2014/03/24 19:10:34 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -517,6 +517,7 @@
u_char temp;
/* start C/T running */
temp = dp->base[DU_CSTRT];
+ __USE(temp);
}
dp->ocounter = dp->counter;
}
@@ -806,7 +807,7 @@
int channel;
int speed;
int s;
- int maj;
+ int maj __diagused;
u_char unit;
u_char duartno;
u_char delim = ':';
@@ -1080,7 +1081,6 @@
int unit = DEV_UNIT(dev);
struct scn_softc *sc;
int error = 0;
- int hwset = 0;
if (unit >= scn_cd.cd_ndevs)
return ENXIO;
@@ -1130,7 +1130,6 @@
/* enable receiver interrupts */
scn_rxenable(sc);
- hwset = 1;
/* set carrier state; */
if ((sc->sc_swflags & SCN_SW_SOFTCAR) || /* check ttyflags */
@@ -1670,15 +1669,10 @@
case TIOCMGET: {
int bits;
- unsigned char ip, op;
+ unsigned char ip;
/* s = spltty(); */
ip = sc->sc_duart->base[DU_IP];
- /*
- * XXX sigh; cannot get op current state!! even if
- * maintained in private, RTS is done in h/w!!
- */
- op = 0;
/* splx(s); */
bits = 0;
@@ -1688,6 +1682,11 @@
bits |= TIOCM_CTS;
#if 0
+ /*
+ * XXX sigh; cannot get op current state!! even if
+ * maintained in private, RTS is done in h/w!!
+ */
+ unsigned char op = 0;
if (op & sc->sc_op_dtr)
bits |= TIOCM_DTR;
if (op & sc->sc_op_rts)
diff -r 8af87e06580a -r 65bb87b8b682 sys/arch/sgimips/dev/zs.c
--- a/sys/arch/sgimips/dev/zs.c Mon Mar 24 18:56:43 2014 +0000
+++ b/sys/arch/sgimips/dev/zs.c Mon Mar 24 19:10:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.37 2011/02/20 07:59:50 matt Exp $ */
+/* $NetBSD: zs.c,v 1.38 2014/03/24 19:10:34 christos Exp $ */
/*-
* Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.37 2011/02/20 07:59:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.38 2014/03/24 19:10:34 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -444,7 +444,7 @@
int
zs_set_speed(struct zs_chanstate *cs, int bps)
{
- int tconst, real_bps;
+ int tconst;
#if 0
while (!(zs_read_csr(cs) & ZSRR0_TX_READY))
@@ -464,11 +464,11 @@
if (tconst < 0)
return (EINVAL);
+#if 0
/* Convert back to make sure we can do it. */
- real_bps = TCONST_TO_BPS(cs->cs_brg_clk, tconst);
+ int real_bps = TCONST_TO_BPS(cs->cs_brg_clk, tconst);
/* XXX - Allow some tolerance here? */
-#if 0
if (real_bps != bps)
return (EINVAL);
#endif
diff -r 8af87e06580a -r 65bb87b8b682 sys/arch/sgimips/sgimips/machdep.c
--- a/sys/arch/sgimips/sgimips/machdep.c Mon Mar 24 18:56:43 2014 +0000
+++ b/sys/arch/sgimips/sgimips/machdep.c Mon Mar 24 19:10:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.139 2013/12/16 15:45:29 mrg Exp $ */
+/* $NetBSD: machdep.c,v 1.140 2014/03/24 19:10:34 christos Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.139 2013/12/16 15:45:29 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.140 2014/03/24 19:10:34 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -63,6 +63,7 @@
#include <sys/kcore.h>
#include <sys/boot_flag.h>
#include <sys/ksyms.h>
+#include <sys/cpu.h>
#include <uvm/uvm_extern.h>
@@ -285,7 +286,7 @@
#endif
}
- strcpy(cpu_model, arcbios_system_identifier);
+ cpu_setmodel("%s", arcbios_system_identifier);
uvm_setpagesize();
Home |
Main Index |
Thread Index |
Old Index