Subject: raw mode com.c mods
To: None <port-i386@NetBSD.ORG>
From: John M Vinopal <banshee@gabriella.resort.com>
List: port-i386
Date: 12/30/1995 01:52:25
I duct taped some of the freebsd sio.c code into com.c today,
producing a kernel which would bypass ttyinput when in raw mode
and simply copy the data into the rawq.

To do this I had to make a mod in the way data/errors are stored.
Presently its p = DEDEDEDEDE (D byte data, E byte error stat).
For ease of use, I modified it to store 256 bytes of data and then
256 of error so I get my errors via *(p + 256).  Is this any more
repulsive than keeping a seperate array?

The mods appear to work though I didn't try any benchmarking.  As
I don't do anything over my com ports other than ppp, this was amusing
but not particularly relevant to me -- is anyone else interested in
this sort of modification?  

-j