diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2010-07-08 14:29:23 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2010-07-08 14:29:23 +0000 |
commit | 054e5dcbe4d3f5ef93245ea42d6b463ac8214644 (patch) | |
tree | 9637f8ab7789c026052bf168ab51a2449044666b /sys/dev/ofw/ofw_standard.c | |
parent | 517524ec87cda59938f35d8cf6e0bfb04f52d0f5 (diff) | |
download | src-054e5dcbe4d3f5ef93245ea42d6b463ac8214644.tar.gz src-054e5dcbe4d3f5ef93245ea42d6b463ac8214644.zip |
Change the argument type to OF_call_method to take an array of cell_t
instead of unsigned longs to prepare for platforms where they are not
the same.
Notes
Notes:
svn path=/head/; revision=209801
Diffstat (limited to 'sys/dev/ofw/ofw_standard.c')
-rw-r--r-- | sys/dev/ofw/ofw_standard.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ofw/ofw_standard.c b/sys/dev/ofw/ofw_standard.c index 5845bf380e1b..e3f8bcc87fa4 100644 --- a/sys/dev/ofw/ofw_standard.c +++ b/sys/dev/ofw/ofw_standard.c @@ -95,7 +95,7 @@ static ssize_t ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len); static int ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method, int nargs, int nreturns, - unsigned long *args_and_returns); + cell_t *args_and_returns); static ihandle_t ofw_std_open(ofw_t ofw, const char *device); static void ofw_std_close(ofw_t ofw, ihandle_t instance); static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, @@ -515,7 +515,7 @@ ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len) /* Call the method in the scope of a given instance. */ static int ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method, - int nargs, int nreturns, unsigned long *args_and_returns) + int nargs, int nreturns, cell_t *args_and_returns) { struct { cell_t name; @@ -529,8 +529,7 @@ ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method, 2, 1, }; - cell_t *cp; - unsigned long *ap; + cell_t *cp, *ap; int n; if (nargs > 6) |