diff options
author | 2005-03-01 15:04:45 +0000 | |
---|---|---|
committer | 2005-03-01 15:04:45 +0000 | |
commit | fcba07c593cc682b50176f37c20af5eadc190d05 (patch) | |
tree | 61916b4a5c6b7fc66713b92ec23da5664ef0b48d | |
parent | new sentence, new line; (diff) | |
download | wireguard-openbsd-fcba07c593cc682b50176f37c20af5eadc190d05.tar.xz wireguard-openbsd-fcba07c593cc682b50176f37c20af5eadc190d05.zip |
only call eaio_l2() if kernel has support for pcxl2 compiled in; from weissmanndude
-rw-r--r-- | sys/arch/hppa/dev/sti_sgc.c | 4 |
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; |