aboutsummaryrefslogtreecommitdiff
path: root/device/net_io.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 20:17:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 20:18:16 +0100
commit92257f56a32f16795402cdbeb76a8b4f56ea2369 (patch)
treefa520391b49f4bac7ad77ee065d68e8dcab2d8be /device/net_io.c
parenta9c54f2c7f93127517b725952e67697bd82a7eeb (diff)
downloadgnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.tar.gz
gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.tar.bz2
gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.zip
slock: Fix initialization of statically-allocated slocks
(this is actually a no-op for i386)
Diffstat (limited to 'device/net_io.c')
-rw-r--r--device/net_io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/device/net_io.c b/device/net_io.c
index d1cd5a67..bad6d3eb 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -86,7 +86,7 @@ int kttd_async_counter= 0;
* Messages can be high priority or low priority.
* The network thread processes high priority messages first.
*/
-decl_simple_lock_data(,net_queue_lock)
+def_simple_lock_data(static,net_queue_lock)
boolean_t net_thread_awake = FALSE;
struct ipc_kmsg_queue net_queue_high;
int net_queue_high_size = 0;
@@ -99,7 +99,7 @@ int net_queue_low_max = 0; /* for debugging */
* List of net kmsgs that can be touched at interrupt level.
* If it is empty, we will also steal low priority messages.
*/
-decl_simple_lock_data(,net_queue_free_lock)
+def_simple_lock_data(static,net_queue_free_lock)
struct ipc_kmsg_queue net_queue_free;
int net_queue_free_size = 0; /* on free list */
int net_queue_free_max = 0; /* for debugging */
@@ -125,7 +125,7 @@ int net_kmsg_send_low_misses = 0; /* for debugging */
int net_thread_awaken = 0; /* for debugging */
int net_ast_taken = 0; /* for debugging */
-decl_simple_lock_data(,net_kmsg_total_lock)
+def_simple_lock_data(static,net_kmsg_total_lock)
int net_kmsg_total = 0; /* total allocated */
int net_kmsg_max; /* initialized below */
@@ -337,7 +337,7 @@ struct net_hash_header {
net_hash_entry_t table[NET_HASH_SIZE];
} filter_hash_header[N_NET_HASH];
-decl_simple_lock_data(,net_hash_header_lock)
+def_simple_lock_data(static,net_hash_header_lock)
#define HASH_ITERATE(head, elt) (elt) = (net_hash_entry_t) (head); do {
#define HASH_ITERATE_END(head, elt) \