diff options
author | jasone <jasone@FreeBSD.org> | 2000-09-07 01:33:02 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-09-07 01:33:02 +0000 |
commit | 769e0f974d8929599ba599ac496510fffc90ff34 (patch) | |
tree | 9387522900085835de81e7830e570ef3f6b3ea80 /sys/net/ppp_tty.c | |
parent | acf1927de02afda4855ec278b1128fd9446405ea (diff) | |
download | FreeBSD-src-769e0f974d8929599ba599ac496510fffc90ff34.zip FreeBSD-src-769e0f974d8929599ba599ac496510fffc90ff34.tar.gz |
Major update to the way synchronization is done in the kernel. Highlights
include:
* Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The
alpha port is still in transition and currently uses both.)
* Per-CPU idle processes.
* Interrupts are run in their own separate kernel threads and can be
preempted (i386 only).
Partially contributed by: BSDi (BSD/OS)
Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
Diffstat (limited to 'sys/net/ppp_tty.c')
-rw-r--r-- | sys/net/ppp_tty.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index 2c4a1cf..906de00 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -89,6 +89,8 @@ #include <sys/vnode.h> #ifdef __i386__ +#include <sys/bus.h> +#include <i386/isa/icu.h> #include <i386/isa/intr_machdep.h> #endif @@ -160,27 +162,6 @@ void pppasyncattach(dummy) void *dummy; { -#ifdef __i386__ - int s; - - s = splhigh(); - - /* - * Make sure that the soft net "engine" cannot run while spltty code is - * active. The if_ppp.c code can walk down into b_to_q etc, and it is - * bad if the tty system was in the middle of another b_to_q... - */ - tty_imask |= softnet_imask; /* spltty() block spl[soft]net() */ - net_imask |= softtty_imask; /* splimp() block splsofttty() */ - net_imask |= tty_imask; /* splimp() block spltty() */ - update_intr_masks(); - - splx(s); - if ( bootverbose ) - printf("new masks: bio %x, tty %x, net %x\n", - bio_imask, tty_imask, net_imask); -#endif - /* register line discipline */ linesw[PPPDISC] = pppdisc; } |