From: Paul Mackerras Date: Fri, 26 Feb 1999 10:53:28 +0000 (+0000) Subject: fix MT stuff; add DEBUG to compile command line for now X-Git-Tag: RELEASE_2_3_6~27 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=a83d9887bdc27bcbf285a3fd7964d2ddac52b1f5 fix MT stuff; add DEBUG to compile command line for now --- diff --git a/svr4/Makefile.sol2 b/svr4/Makefile.sol2 index ac4f6f5..b67ea69 100644 --- a/svr4/Makefile.sol2 +++ b/svr4/Makefile.sol2 @@ -1,12 +1,12 @@ # # Makefile for STREAMS modules for Solaris 2. # -# $Id: Makefile.sol2,v 1.12 1998/03/25 03:09:57 paulus Exp $ +# $Id: Makefile.sol2,v 1.13 1999/02/26 10:53:28 paulus Exp $ # include Makedefs -CFLAGS= -D_KERNEL -DSVR4 -DSOL2 -I../include $(COPTS) -DPRIOQ +CFLAGS= -D_KERNEL -DSVR4 -DSOL2 -I../include $(COPTS) -DPRIOQ -DDEBUG all: ppp ppp_ahdl ppp_comp diff --git a/svr4/ppp_mod.c b/svr4/ppp_mod.c index 3da9397..6b80093 100644 --- a/svr4/ppp_mod.c +++ b/svr4/ppp_mod.c @@ -24,7 +24,7 @@ * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. * - * $Id: ppp_mod.c,v 1.2 1996/01/18 03:27:36 paulus Exp $ + * $Id: ppp_mod.c,v 1.3 1999/02/26 10:53:28 paulus Exp $ */ /* @@ -37,6 +37,7 @@ #include #include #include +#include #ifdef __STDC__ #define __P(x) x @@ -50,6 +51,7 @@ static int ppp_detach __P((dev_info_t *, ddi_detach_cmd_t)); static int ppp_devinfo __P((dev_info_t *, ddi_info_cmd_t, void *, void **)); extern struct streamtab pppinfo; +extern krwlock_t ppp_lower_lock; static dev_info_t *ppp_dip; @@ -131,6 +133,7 @@ ppp_attach(dip, cmd) ddi_remove_minor_node(dip, NULL); return DDI_FAILURE; } + rw_init(&ppp_lower_lock, NULL, RW_DRIVER, NULL); return DDI_SUCCESS; } @@ -139,6 +142,7 @@ ppp_detach(dip, cmd) dev_info_t *dip; ddi_detach_cmd_t cmd; { + rw_destroy(&ppp_lower_lock); ddi_remove_minor_node(dip, NULL); return DDI_SUCCESS; }