Use ttyalloc() instead of ttymalloc()

This commit is contained in:
Poul-Henning Kamp 2006-01-04 09:46:20 +00:00
parent 8a7f77816e
commit 8c92c2096d
3 changed files with 7 additions and 4 deletions

View File

@ -257,7 +257,7 @@ pcvt_attach(device_t dev)
for(i = 0; i < totalscreens; i++)
{
pcvt_tty[i] = ttymalloc(pcvt_tty[i]);
pcvt_tty[i] = ttyalloc();
vs[i].vs_tty = pcvt_tty[i];
make_dev(&vt_cdevsw, i, UID_ROOT, GID_WHEEL, 0600, "ttyv%r", i);
}
@ -644,7 +644,7 @@ pcvt_cn_probe(struct consdev *cp)
sprintf(cp->cn_name, "ttyv%r", 0);
cp->cn_pri = CN_INTERNAL;
pcvt_tty[0] = ttymalloc(pcvt_tty[0]);
pcvt_tty[0] = ttyalloc();
cp->cn_tp = pcvt_tty[0];
}

View File

@ -322,6 +322,7 @@ xboxfb_drvinit (void* unused)
/* probe for a keyboard */
xboxfb_timer (NULL);
xboxfb_tp = ttyalloc();
}
static void
@ -361,7 +362,7 @@ xboxfb_dev_open(struct cdev* dev, int flag, int mode, struct thread* td)
{
struct tty* tp;
tp = xboxfb_tp = dev->si_tty = ttymalloc (xboxfb_tp);
tp = dev->si_tty = xboxfb_tp;
tp->t_oproc = xboxfb_tty_start;
tp->t_param = xboxfb_tty_param;

View File

@ -102,7 +102,9 @@ static void
ssccnattach(void *arg)
{
make_dev(&ssc_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "ssccons");
ssc_tp = ttyalloc();
}
SYSINIT(ssccnattach, SI_SUB_DRIVERS, SI_ORDER_ANY, ssccnattach, 0);
static void
@ -139,7 +141,7 @@ sscopen(struct cdev *dev, int flag, int mode, struct thread *td)
int s;
int error = 0, setuptimeout = 0;
tp = ssc_tp = dev->si_tty = ttymalloc(ssc_tp);
tp = dev->si_tty = ssc_tp;
s = spltty();
tp->t_oproc = sscstart;