Fix memory barrier in a debug function
[netbsd-mini2440.git] / sys / rump / librump / rumpnet / rumpnet_if_wrappers.c
bloba480165e91d944dfa10eac1646db33e2c2eb1811
1 /* $NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp $ */
3 /*
4 * Automatically generated. DO NOT EDIT.
5 * from: NetBSD: rumpnet.ifspec,v 1.2 2009/10/20 23:28:50 pooka Exp
6 * by: NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp
7 */
9 #include <sys/cdefs.h>
10 #include <sys/systm.h>
12 #include <rump/rump.h>
13 #include <rump/rumpnet_if_pub.h>
15 #include "rump_private.h"
16 #include "rumpnet_if_priv.h"
18 void __dead rump_net_unavailable(void);
19 void __dead
20 rump_net_unavailable(void)
23 panic("net interface unavailable");
26 int
27 rump_pub_virtif_create(int arg1)
29 int rv;
31 rump_schedule();
32 rv = rump_virtif_create(arg1);
33 rump_unschedule();
35 return rv;
37 __weak_alias(rump_virtif_create,rump_net_unavailable);
39 int
40 rump_pub_shmif_create(const char *arg1, int *arg2)
42 int rv;
44 rump_schedule();
45 rv = rump_shmif_create(arg1, arg2);
46 rump_unschedule();
48 return rv;
50 __weak_alias(rump_shmif_create,rump_net_unavailable);