--- xinu/sys/tdump.c 2018/04/24 17:39:04 1.1 +++ xinu/sys/tdump.c 2018/04/24 17:39:45 1.1.1.2 @@ -33,12 +33,14 @@ tdump() } /*------------------------------------------------------------------------ - * tdumph -- dump the tty control block + * tdumph -- dump the tty control blocks and halt *------------------------------------------------------------------------ */ tdumph() { tdump(); + kprintf("\nDump complete -- type P to continue\n"); +/* halt(); */ } /*------------------------------------------------------------------------ @@ -49,20 +51,20 @@ tdump1(tnum) int tnum; { register struct tty *iptr; - PStype ps; + int len; int i; - disable(ps); + disable(); iptr = &tty[tnum]; - kprintf("Tty %d CSR at %o\n",tnum,iptr->ioaddr); - kprintf("INPUT -- tail at %d head at %d sem # %d value %d\n", + kprintf("Tty %d CSR at 0x%x\n",tnum,iptr->ioaddr); + kprintf("INPUT -- tail at %d, head at %d, sem #%d = value %d\n", iptr->itail,iptr->ihead,iptr->isem,i=scount(iptr->isem)); if (i<0) i=0; else if (i > IBUFLEN) i = IBUFLEN; tqdump(iptr->itail,i,IBUFLEN,iptr->ibuff); - kprintf("OUTPUT -- tail at %d head at %d sem # %d value %d\n", + kprintf("OUTPUT -- tail at %d, head at %d, sem #%d = value %d\n", iptr->otail,iptr->ohead,iptr->osem,i=scount(iptr->osem)); i = OBUFLEN - i; if (i < 0) @@ -70,7 +72,7 @@ int tnum; else if (i>OBUFLEN) i = OBUFLEN; tqdump(iptr->otail,i,OBUFLEN,iptr->obuff); - restore(ps); + restore(); } static tqdump(start, len, maxlen, buff) int start,len,maxlen;