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.
This commit is contained in:
parent
28c28b06ed
commit
cb70011ceb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17628
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user