- Remove cdevsw_add().

- Call ttyregister() and make_dev() to register virtual terminals.
- Set nottystop to tp->t_stop.
This commit is contained in:
Kazutaka YOKOTA 1999-10-06 13:01:12 +00:00
parent a0468d95ed
commit 5d5198c72f

View File

@ -355,15 +355,15 @@ pcattach(struct isa_device *dev)
#if !PCVT_NETBSD && !(PCVT_FREEBSD > 110 && PCVT_FREEBSD < 200)
for(i = 0; i < totalscreens; i++)
{
ttyregister(&pccons[i]);
vs[i].vs_tty = &pccons[i];
make_dev(&pc_cdevsw, i, UID_ROOT, GID_WHEEL, 0600, "ttyv%r", i);
}
#endif /* !PCVT_NETBSD && !(PCVT_FREEBSD > 110 && PCVT_FREEBSD < 200) */
async_update(UPDATE_START); /* start asynchronous updates */
#if PCVT_FREEBSD > 205
cdevsw_add(&pc_cdevsw);
#endif /* PCVT_FREEBSD > 205 */
#if PCVT_NETBSD > 9
vthand.ih_fun = pcrint;
@ -473,6 +473,7 @@ pcopen(Dev_t dev, int flag, int mode, struct proc *p)
tp->t_oproc = pcstart;
tp->t_param = pcparam;
tp->t_stop = nottystop;
tp->t_dev = dev;
if ((tp->t_state & TS_ISOPEN) == 0)