summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-03-01 15:04:46 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-03-01 15:04:46 +0000
commit3f25497efa9d54868208aef1dadc626f206946cb (patch)
tree75eb50e36b27073ead40090c18911a434b33513d /sys/arch/hppa
parentaa32ad1813b60ca81dad3e6ca355a686a438e059 (diff)
only call eaio_l2() if kernel has support for pcxl2 compiled in; from weissmanndude
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/dev/sti_sgc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c
index fc5ea07f505..3a3d75d7644 100644
--- a/sys/arch/hppa/dev/sti_sgc.c
+++ b/sys/arch/hppa/dev/sti_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_sgc.c,v 1.26 2005/02/27 22:10:57 miod Exp $ */
+/* $OpenBSD: sti_sgc.c,v 1.27 2005/03/01 15:04:45 mickey Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -224,9 +224,11 @@ sti_sgc_attach(parent, self, aux)
}
}
+#ifdef HP7300LC_CPU
/* PCXL2: enable accel i/o for this space */
if (cpu_type == hpcxl2)
eaio_l2(0x8 >> (((ca->ca_hpa >> 25) & 3) - 2));
+#endif
if (ca->ca_hpa == (hppa_hpa_t)PAGE0->mem_cons.pz_hpa)
sc->sc_flags |= STI_CONSOLE;