need an extra (u_long) to convert a 32 bit pointer to a cell_t.
This commit is contained in:
parent
5e4d079944
commit
4171072ea1
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ofw_machdep.c,v 1.30 2006/06/10 06:38:07 rjs Exp $ */
|
/* $NetBSD: ofw_machdep.c,v 1.31 2006/10/03 21:06:58 mrg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1996 Wolfgang Solfrank.
|
* Copyright (C) 1996 Wolfgang Solfrank.
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
#include "opt_multiprocessor.h"
|
#include "opt_multiprocessor.h"
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ofw_machdep.c,v 1.30 2006/06/10 06:38:07 rjs Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ofw_machdep.c,v 1.31 2006/10/03 21:06:58 mrg Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/buf.h>
|
#include <sys/buf.h>
|
||||||
|
@ -576,7 +576,7 @@ prom_startcpu(u_int cpu, void *func, u_long arg)
|
||||||
args.nargs = 3;
|
args.nargs = 3;
|
||||||
args.nreturns = 0;
|
args.nreturns = 0;
|
||||||
args.cpu = cpu;
|
args.cpu = cpu;
|
||||||
args.func = (cell_t)func;
|
args.func = (cell_t)(u_long)func;
|
||||||
args.arg = (cell_t)arg;
|
args.arg = (cell_t)arg;
|
||||||
|
|
||||||
openfirmware(&args);
|
openfirmware(&args);
|
||||||
|
|
Loading…
Reference in New Issue