Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/dev Fix cputype test.



details:   https://anonhg.NetBSD.org/src/rev/fff1fe9a3113
branches:  trunk
changeset: 752772:fff1fe9a3113
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 06 19:36:33 2010 +0000

description:
Fix cputype test.

diffstat:

 sys/arch/hp700/dev/sti_sgc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r da3389b7a615 -r fff1fe9a3113 sys/arch/hp700/dev/sti_sgc.c
--- a/sys/arch/hp700/dev/sti_sgc.c      Sat Mar 06 16:57:00 2010 +0000
+++ b/sys/arch/hp700/dev/sti_sgc.c      Sat Mar 06 19:36:33 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sti_sgc.c,v 1.18 2009/11/03 05:07:25 snj Exp $ */
+/*     $NetBSD: sti_sgc.c,v 1.19 2010/03/06 19:36:33 skrll Exp $       */
 
 /*     $OpenBSD: sti_sgc.c,v 1.21 2003/12/22 23:39:06 mickey Exp $     */
 
@@ -35,7 +35,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sti_sgc.c,v 1.18 2009/11/03 05:07:25 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sti_sgc.c,v 1.19 2010/03/06 19:36:33 skrll Exp $");
+
+#include "opt_cputype.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -247,7 +249,7 @@
         * "pcxl2_ers.{ps,pdf}", (section / chapter . rel. page / abs. page)
         * 8.7.4 / 8-12 / 92, 11.3.14 / 11-14 / 122 and 14.8 / 14-5 / 203.
         */
-       if (strcmp(hppa_cpu_info->hppa_cpu_info_chip_type, "PCX-L2") == 0
+       if (hppa_cpu_info->hci_cputype == hpcxl2
            && ca->ca_hpa >= PCXL2_ACCEL_IO_START
            && ca->ca_hpa <= PCXL2_ACCEL_IO_END)
                eaio_l2(PCXL2_ACCEL_IO_ADDR2MASK(ca->ca_hpa));



Home | Main Index | Thread Index | Old Index