summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-03-23 01:09:45 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-03-23 01:09:45 +0000
commitc5da6703f515ef8f41371f20dd20099af86ab1d8 (patch)
treeb25b93ef3aa2c3a4eca819bac00165fb0c2f47f1 /sys/dev/ofw
parentc36ab23587a15b7daad51b3033ccea07cc9adc3e (diff)
downloadFreeBSD-src-c5da6703f515ef8f41371f20dd20099af86ab1d8.zip
FreeBSD-src-c5da6703f515ef8f41371f20dd20099af86ab1d8.tar.gz
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
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_standard.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/sys/dev/ofw/ofw_standard.c b/sys/dev/ofw/ofw_standard.c
index de18a9e..0fda7db 100644
--- a/sys/dev/ofw/ofw_standard.c
+++ b/sys/dev/ofw/ofw_standard.c
@@ -165,7 +165,7 @@ ofw_std_init(ofw_t ofw, void *openfirm)
static int
ofw_std_test(ofw_t ofw, const char *name)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -187,7 +187,7 @@ static int
ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
unsigned long *returns)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -217,7 +217,7 @@ ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
static phandle_t
ofw_std_peer(ofw_t ofw, phandle_t node)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -239,7 +239,7 @@ ofw_std_peer(ofw_t ofw, phandle_t node)
static phandle_t
ofw_std_child(ofw_t ofw, phandle_t node)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -261,7 +261,7 @@ ofw_std_child(ofw_t ofw, phandle_t node)
static phandle_t
ofw_std_parent(ofw_t ofw, phandle_t node)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -283,7 +283,7 @@ ofw_std_parent(ofw_t ofw, phandle_t node)
static phandle_t
ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -305,7 +305,7 @@ ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
static ssize_t
ofw_std_getproplen(ofw_t ofw, phandle_t package, const char *propname)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -330,7 +330,7 @@ static ssize_t
ofw_std_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;
@@ -359,7 +359,7 @@ static int
ofw_std_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;
@@ -387,7 +387,7 @@ static int
ofw_std_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;
@@ -415,7 +415,7 @@ ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
static ssize_t
ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -441,7 +441,7 @@ ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len)
static phandle_t
ofw_std_finddevice(ofw_t ofw, const char *device)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -463,7 +463,7 @@ ofw_std_finddevice(ofw_t ofw, const char *device)
static ssize_t
ofw_std_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;
@@ -489,7 +489,7 @@ ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
static ssize_t
ofw_std_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;
@@ -516,7 +516,7 @@ static int
ofw_std_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;
@@ -559,7 +559,7 @@ ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method,
static ihandle_t
ofw_std_open(ofw_t ofw, const char *device)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -581,7 +581,7 @@ ofw_std_open(ofw_t ofw, const char *device)
static void
ofw_std_close(ofw_t ofw, ihandle_t instance)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -599,7 +599,7 @@ ofw_std_close(ofw_t ofw, ihandle_t instance)
static ssize_t
ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -626,7 +626,7 @@ ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
static ssize_t
ofw_std_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;
@@ -652,7 +652,7 @@ ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
static int
ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -682,7 +682,7 @@ ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
static caddr_t
ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -708,7 +708,7 @@ ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align)
static void
ofw_std_release(ofw_t ofw, void *virt, size_t size)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -732,7 +732,7 @@ ofw_std_release(ofw_t ofw, void *virt, size_t size)
static void
ofw_std_enter(ofw_t ofw)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
@@ -748,7 +748,7 @@ ofw_std_enter(ofw_t ofw)
static void
ofw_std_exit(ofw_t ofw)
{
- static struct {
+ struct {
cell_t name;
cell_t nargs;
cell_t nreturns;
OpenPOWER on IntegriCloud