From c5da6703f515ef8f41371f20dd20099af86ab1d8 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Tue, 23 Mar 2010 01:09:45 +0000 Subject: Do not declare the various OFW command buffers static. It does not appear to be necessary on either sparc64 or powerpc, and is a concurrency nightmare. Reviewed by: marius --- sys/powerpc/ofw/ofw_real.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/ofw/ofw_real.c b/sys/powerpc/ofw/ofw_real.c index a65ee91..094025c 100644 --- a/sys/powerpc/ofw/ofw_real.c +++ b/sys/powerpc/ofw/ofw_real.c @@ -273,7 +273,7 @@ ofw_real_init(ofw_t ofw, void *openfirm) static int ofw_real_test(ofw_t ofw, const char *name) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -304,7 +304,7 @@ ofw_real_test(ofw_t ofw, const char *name) static phandle_t ofw_real_peer(ofw_t ofw, phandle_t node) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -326,7 +326,7 @@ ofw_real_peer(ofw_t ofw, phandle_t node) static phandle_t ofw_real_child(ofw_t ofw, phandle_t node) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -348,7 +348,7 @@ ofw_real_child(ofw_t ofw, phandle_t node) static phandle_t ofw_real_parent(ofw_t ofw, phandle_t node) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -370,7 +370,7 @@ ofw_real_parent(ofw_t ofw, phandle_t node) static phandle_t ofw_real_instance_to_package(ofw_t ofw, ihandle_t instance) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -392,7 +392,7 @@ ofw_real_instance_to_package(ofw_t ofw, ihandle_t instance) static ssize_t ofw_real_getproplen(ofw_t ofw, phandle_t package, const char *propname) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -422,7 +422,7 @@ static ssize_t ofw_real_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf, size_t buflen) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -458,7 +458,7 @@ static int ofw_real_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf, size_t size) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -493,7 +493,7 @@ static int ofw_real_setprop(ofw_t ofw, phandle_t package, const char *propname, const void *buf, size_t len) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -526,7 +526,7 @@ ofw_real_setprop(ofw_t ofw, phandle_t package, const char *propname, static ssize_t ofw_real_canon(ofw_t ofw, const char *device, char *buf, size_t len) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -559,7 +559,7 @@ ofw_real_canon(ofw_t ofw, const char *device, char *buf, size_t len) static phandle_t ofw_real_finddevice(ofw_t ofw, const char *device) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -586,7 +586,7 @@ ofw_real_finddevice(ofw_t ofw, const char *device) static ssize_t ofw_real_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -619,7 +619,7 @@ ofw_real_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len) static ssize_t ofw_real_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -653,7 +653,7 @@ static int ofw_real_call_method(ofw_t ofw, ihandle_t instance, const char *method, int nargs, int nreturns, unsigned long *args_and_returns) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -701,7 +701,7 @@ ofw_real_call_method(ofw_t ofw, ihandle_t instance, const char *method, static ihandle_t ofw_real_open(ofw_t ofw, const char *device) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -729,7 +729,7 @@ ofw_real_open(ofw_t ofw, const char *device) static void ofw_real_close(ofw_t ofw, ihandle_t instance) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -747,7 +747,7 @@ ofw_real_close(ofw_t ofw, ihandle_t instance) static ssize_t ofw_real_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -780,7 +780,7 @@ ofw_real_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len) static ssize_t ofw_real_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -811,7 +811,7 @@ ofw_real_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len) static int ofw_real_seek(ofw_t ofw, ihandle_t instance, u_int64_t pos) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -841,7 +841,7 @@ ofw_real_seek(ofw_t ofw, ihandle_t instance, u_int64_t pos) static caddr_t ofw_real_claim(ofw_t ofw, void *virt, size_t size, u_int align) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -867,7 +867,7 @@ ofw_real_claim(ofw_t ofw, void *virt, size_t size, u_int align) static void ofw_real_release(ofw_t ofw, void *virt, size_t size) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -891,7 +891,7 @@ ofw_real_release(ofw_t ofw, void *virt, size_t size) static void ofw_real_enter(ofw_t ofw) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; @@ -907,7 +907,7 @@ ofw_real_enter(ofw_t ofw) static void ofw_real_exit(ofw_t ofw) { - static struct { + struct { cell_t name; cell_t nargs; cell_t nreturns; -- cgit v1.1