summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-07-05 22:17:22 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-07-05 22:17:22 +0000
commit648302818ea2ffbe83977b9a962b25274334668e (patch)
treeea29e3051dee4c1d364071c7bb928082b8b18e31 /sys/arch/sparc64
parent8882a22f7b4efb478326b2fc3a5a3c759d62143d (diff)
Specify the correct number of arguments in prom call that sets the trap table
(1 for sun4u, 2 for sun4v).
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/ofw_machdep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/ofw_machdep.c b/sys/arch/sparc64/sparc64/ofw_machdep.c
index 60482f2fdb9..caa46315a46 100644
--- a/sys/arch/sparc64/sparc64/ofw_machdep.c
+++ b/sys/arch/sparc64/sparc64/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.25 2008/03/19 20:21:01 kettenis Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.26 2008/07/05 22:17:21 kettenis Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.16 2001/07/20 00:07:14 eeh Exp $ */
/*
@@ -118,7 +118,10 @@ prom_set_trap_table(tba, mmfsa)
} args;
args.name = ADR2CELL("SUNW,set-trap-table");
- args.nargs = 2;
+ if (CPU_ISSUN4V)
+ args.nargs = 2;
+ else
+ args.nargs = 1;
args.nreturns = 0;
args.tba = ADR2CELL(tba);
args.mmfsa = ADR2CELL(mmfsa);