freebsd-dev/sys
Rodney W. Grimes 0d01087b28 From Bruce Evans:
lpt doesn't work here if the printer is not turned on at boot time (this
has been reported for other systems).

lpt has a weird mapping of the flag bits vs printer numbers and MAKEDEV
does not understand this (printer 0 uses minor numbers 0-0x3f, printer 1
uses minors 0x40-0x7f, etc).

The following (simpler) problems are fixed by the patch.

lpt did not check the minor number on open, so if NLPT1 == 1 and you
try to open printer 1 then random memory above the lpt_sc array is
accessed.  I thought I had this problem for minors 1 and 2.  However,
it does not actually occur until minor 0x40.  Does anyone have lpt64?

lpt had several unnecessary && broken ANSIisms and other sloppy
declarations.

Bruce
1993-07-13 18:52:49 +00:00
..
alpha/include/pc Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
amd64 Fixed two occarances of ldos which should have been lods. 1993-07-12 09:34:38 +00:00
conf Put if_we driver well and truly back into the kernel. 1993-07-09 01:17:46 +00:00
ddb Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
dev fixed bugs in the probe routine uncovered by the previous fix. 1993-06-27 10:28:28 +00:00
i386 From Bruce Evans: 1993-07-13 18:52:49 +00:00
isa Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
kern Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
powerpc/include Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
scsi Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00
sys Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00