summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-09-11 18:55:00 +0000
committermarius <marius@FreeBSD.org>2010-09-11 18:55:00 +0000
commit0b2ac861b54b90c8db0a69d05d466c2fa101b714 (patch)
tree231d5ccd3759f477673adfb3f7670899307ba854 /sys/powerpc
parent2beda3228fedb15b6266577cec362ec352a47ebc (diff)
downloadFreeBSD-src-0b2ac861b54b90c8db0a69d05d466c2fa101b714.zip
FreeBSD-src-0b2ac861b54b90c8db0a69d05d466c2fa101b714.tar.gz
Change OF_interpret() to also take an array of cell_t (missed in r209801).
Reviewed by: nwhitehorn
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/ofw/ofw_real.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/powerpc/ofw/ofw_real.c b/sys/powerpc/ofw/ofw_real.c
index 8eb86b4..963e96c 100644
--- a/sys/powerpc/ofw/ofw_real.c
+++ b/sys/powerpc/ofw/ofw_real.c
@@ -101,7 +101,7 @@ static ssize_t ofw_real_package_to_path(ofw_t, phandle_t package, char *buf,
static int ofw_real_call_method(ofw_t, ihandle_t instance, const char *method,
int nargs, int nreturns, cell_t *args_and_returns);
static int ofw_real_interpret(ofw_t ofw, const char *cmd, int nreturns,
- unsigned long *returns);
+ cell_t *returns);
static ihandle_t ofw_real_open(ofw_t, const char *device);
static void ofw_real_close(ofw_t, ihandle_t instance);
static ssize_t ofw_real_read(ofw_t, ihandle_t instance, void *addr, size_t len);
@@ -756,7 +756,7 @@ ofw_real_call_method(ofw_t ofw, ihandle_t instance, const char *method,
cell_t instance;
cell_t args_n_results[12];
} args;
- cell_t *cp, *ap;
+ cell_t *ap, *cp;
int n;
args.name = (cell_t)(uintptr_t)"call-method";
@@ -791,8 +791,7 @@ ofw_real_call_method(ofw_t ofw, ihandle_t instance, const char *method,
}
static int
-ofw_real_interpret(ofw_t ofw, const char *cmd, int nreturns,
- unsigned long *returns)
+ofw_real_interpret(ofw_t ofw, const char *cmd, int nreturns, cell_t *returns)
{
vm_offset_t argsptr;
struct {
OpenPOWER on IntegriCloud