[comp.os.minix] Yet another TTY driver, part 4 of 3

evans@ditsyda.oz (Bruce Evans) (01/11/89)

This contains the file "inportb.s", which I forgot to include with the
previous parts.

I have made only one change to TTY since the posting. The WAKEUP_TIMEOUT
in tty.c made "term" unacceptably jerky on a 386 at 2400 baud, so I
reduced it to the minimum of (HZ/60).

I calculated that the latency for accessing an extended memory RAM disk
on an AT is about 1 millisec (see another posting). This will cause
trouble on AT's at and above 9600 baud.

The improvements to proc.c etc. to allow PC's to handle 9600 baud will
only be posted as part of my 386 protected mode port. While there are no
essential dependencies between these, I don't have time to separate them
and support all the versions. The 386 binary acts just like an 8088 one
unless it detects a 386.

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  inportb.s
# Wrapped by sys@besplex on Tue Jan 10 21:41:32 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'inportb.s' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'inportb.s'\"
else
echo shar: Extracting \"'inportb.s'\" \(195 characters\)
sed "s/^X//" >'inportb.s' <<'END_OF_FILE'
X| int inportb( int port );
X| reads a byte from the i/o port  port  and returns it
X
X	.globl	_inportb
X	.text
X	.even
X_inportb:
X	pop	bx
X	pop	dx
X	dec	sp
X	dec	sp
X	in
X	subb	ah,ah
X	jmp	(bx)		| asld only
END_OF_FILE
if test 195 -ne `wc -c <'inportb.s'`; then
    echo shar: \"'inportb.s'\" unpacked with wrong size!
fi
# end of 'inportb.s'
fi
echo shar: End of shell archive.
exit 0

Bruce Evans
evans@ditsyda.oz.au
-- 

Bruce Evans
evans@ditsyda.oz.au
D