summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-04-05 14:13:26 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-04-05 14:13:26 +0000
commit7b465dd5593ff7b3f25c30ebff91f4a2c899fbb8 (patch)
tree3a88bdbff19c3671b5878088cd20c95459933897
parent36cff7f3aaab95812f4121be5088ca9d78683f09 (diff)
Enable wide mode for PSW defaults.
ok kettenis@
-rw-r--r--sys/arch/hppa64/hppa64/machdep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c
index c7d297d589b..f164a44986e 100644
--- a/sys/arch/hppa64/hppa64/machdep.c
+++ b/sys/arch/hppa64/hppa64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.30 2011/01/04 17:59:14 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.31 2011/04/05 14:13:25 jsing Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -190,6 +190,12 @@ hppa_init(paddr_t start)
cpuid();
+ /* Enable wide mode for PSW defaults. */
+ if ((error = pdc_call((iodcio_t)pdc, 0, PDC_PSW, PDC_PSW_SETDEFAULTS,
+ 0x2 /* PDC WIDE BIT */)) < 0)
+ panic("Failed to enable wide mode for PSW defaults: %d\n",
+ error);
+
/* cache parameters */
if ((error = pdc_call((iodcio_t)pdc, 0, PDC_CACHE, PDC_CACHE_DFLT,
&pdc_cache)) < 0) {