diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-15 19:40:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-15 19:40:42 +0000 |
commit | be4afdca2a5b4f0324ddb45bb3f51a9ad4bcbed4 (patch) | |
tree | 7cc7f6b3659d4ba09383a2f37552ffbf1c8add07 /sys/net/route.c | |
parent | db787728ab081e9d84b26e1a98431526e1420c27 (diff) |
Introduce splsoftassert(), similar to splassert() but for soft interrupt
levels. This will allow for platforms where soft interrupt levels do not
map to real hardware interrupt levels to have soft ipl values overlapping
hard ipl values without breaking spl asserts.
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index ef71aca6dba..4cfa782c63a 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.104 2009/02/27 13:15:40 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.105 2009/03/15 19:40:41 miod Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -459,7 +459,7 @@ rtredirect(struct sockaddr *dst, struct sockaddr *gateway, struct ifaddr *ifa; struct ifnet *ifp = NULL; - splassert(IPL_SOFTNET); + splsoftassert(IPL_SOFTNET); /* verify the gateway is directly reachable */ if ((ifa = ifa_ifwithnet(gateway)) == NULL) { |