diff --git a/sys/dev/rcons/rcons_kern.c b/sys/dev/rcons/rcons_kern.c index eac3c28238de..6075634d1881 100644 --- a/sys/dev/rcons/rcons_kern.c +++ b/sys/dev/rcons/rcons_kern.c @@ -1,4 +1,4 @@ -/* $NetBSD: rcons_kern.c,v 1.7 1999/04/13 18:43:17 ad Exp $ */ +/* $NetBSD: rcons_kern.c,v 1.8 1999/05/19 20:07:34 ad Exp $ */ /* * Copyright (c) 1991, 1993 @@ -190,9 +190,12 @@ rcons_init(rc) rcons_init_ops(rc); rc->rc_col = 0; rc->rc_row = 0; +#ifdef pmax + /* XXX remedies quirky behaviour with the px boards */ rcons_clear2eop(rc); +#endif rcons_cursor(rc); - + /* Initialization done; hook us up */ fbconstty->t_oproc = rcons_output; /*fbconstty->t_stop = (void (*)()) nullop;*/ diff --git a/sys/dev/rcons/rcons_subr.c b/sys/dev/rcons/rcons_subr.c index acb723e17164..7642a0f76ac4 100644 --- a/sys/dev/rcons/rcons_subr.c +++ b/sys/dev/rcons/rcons_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: rcons_subr.c,v 1.4 1999/04/22 00:46:36 ad Exp $ */ +/* $NetBSD: rcons_subr.c,v 1.5 1999/05/19 20:07:34 ad Exp $ */ /* * Copyright (c) 1991, 1993 @@ -70,16 +70,13 @@ void rcons_init_ops(rc) struct rconsole *rc; { - u_int ch; long tmp; - int i; + int i, m; - i = (sizeof(rc->rc_charmap) / sizeof(rc->rc_charmap[0])) - 1; + m = sizeof(rc->rc_charmap) / sizeof(rc->rc_charmap[0]); - for (; i >= 0; i--) { - rc->rc_ops->mapchar(rc->rc_cookie, i, &ch); - rc->rc_charmap[i] = ch; - } + for (i = 0; i < m; i++) + rc->rc_ops->mapchar(rc->rc_cookie, i, rc->rc_charmap + i); /* Determine which attributes the device supports. */ rc->rc_fgcolor = RASTERCONSOLE_FGCOL; @@ -104,7 +101,7 @@ void rcons_puts(rc, str, n) struct rconsole *rc; unsigned char *str; - int n; + int n; { int c, i, j; unsigned char *cp;