From 339b1b78afec214d0cc1fcf781ac379be49a8563 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 16 Aug 1996 10:16:32 +0000 Subject: restore nsccons variable from rev 1.115 that was deleted in rev 1.136 during phk's staticize/cleanup commits. pstat needs it, the MAXCONS option is not visible anywhere else, and pstat uses it to find the bounds of the sccons[MAXCONS] array, which varies. --- sys/i386/isa/syscons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/i386/isa') diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index 5d6ea9a..9e933e0 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.159 1996/07/01 20:28:38 bde Exp $ + * $Id: syscons.c,v 1.160 1996/07/30 15:20:08 ache Exp $ */ #include "sc.h" @@ -140,6 +140,7 @@ struct tty *sccons[MAXCONS+1]; #define VIRTUAL_TTY(x) &sccons[x] #define CONSOLE_TTY &sccons[MAXCONS] static struct tty sccons[MAXCONS+1]; +static int nsccons = MAXCONS; /* for pstat only */ #endif #define MONO_BUF pa_to_va(0xB0000) #define CGA_BUF pa_to_va(0xB8000) -- cgit v1.1