diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-10-19 15:17:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-10-19 15:17:31 +0000 |
commit | f4b52ffe586a64406ed20615bbcfab0960c4f517 (patch) | |
tree | 826e64446a3ee756979d097b2c10fe6f0309190f /sys | |
parent | 8d16d26334828c4f56b2712b28dbb67e851cee51 (diff) |
Use HDL2CELL when passing an OpenFirmware handle in prom_start_cpu. Makes
bsd.mp boot on an E250.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/ofw_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/ofw_machdep.c b/sys/arch/sparc64/sparc64/ofw_machdep.c index 9cfe2908fc6..312c35a5ee1 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.20 2007/09/08 17:48:12 kettenis Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.21 2007/10/19 15:17:30 kettenis Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.16 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -579,7 +579,7 @@ prom_start_cpu(int cpu, void *func, long arg) args.name = ADR2CELL("SUNW,start-cpu"); args.nargs = 3; args.nreturns = 0; - args.cpu = cpu; + args.cpu = HDL2CELL(cpu); args.func = ADR2CELL(func); args.arg = arg; |