From 9c82eb852e67958e1032bcac6c8e4d030040c0fb Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 16 Mar 2001 13:59:54 +0000 Subject: Add patch provided by Andrew Dyer in pkg/11820 for better I/O support for the printer port. --- emulators/doscmd/files/patch-sum | 21 +++++++++++---------- emulators/doscmd/patches/patch-aj | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 emulators/doscmd/patches/patch-aj (limited to 'emulators/doscmd') diff --git a/emulators/doscmd/files/patch-sum b/emulators/doscmd/files/patch-sum index 0f5ce6f13d8..88e08b9b9ea 100644 --- a/emulators/doscmd/files/patch-sum +++ b/emulators/doscmd/files/patch-sum @@ -1,11 +1,12 @@ -$NetBSD: patch-sum,v 1.5 2001/02/27 17:20:09 wiz Exp $ +$NetBSD: patch-sum,v 1.6 2001/03/16 13:59:54 wiz Exp $ -MD5 (patch-aa) = 9343d1ec0d91911d3a4c0df6e27fc12f -MD5 (patch-ab) = f26edbce61a79ef03ae82076fadb104d -MD5 (patch-ac) = 1061765f3a5893915b8e67bdd49daedd -MD5 (patch-ad) = 5913282d495cb08718e42675a594e589 -MD5 (patch-ae) = 8cf98f88a101e939f090c51b8f4bd8f2 -MD5 (patch-af) = f4893e6b864d087c0c20d3da0ba18fce -MD5 (patch-ag) = 89a322466123289f4c88561af2086ce0 -MD5 (patch-ah) = 1b101672454de5fa34f9ec76fbc153d4 -MD5 (patch-ai) = 61e74d01e5cc4f19b4afe478509add11 +SHA1 (patch-aa) = 56e3f9951ac3dcb6e07cd1f76c665286a694d67b +SHA1 (patch-ab) = c83d7e5b8b514ca7f88b0bd3a0be963b7f77d3a4 +SHA1 (patch-ac) = 09757f9522e52b7491c3052dbb856a9b3828ce45 +SHA1 (patch-ad) = bc9ad510f408cb3ea99bfd000c5549cb64693e43 +SHA1 (patch-ae) = 6a33c0eff738caab4e30513dbe9b9f57d7b21d09 +SHA1 (patch-af) = b0091e54d0ffe8a2ebcae28a924fad24888ed20e +SHA1 (patch-ag) = bbbca5339d66cb52b93019b712d21301d910d32b +SHA1 (patch-ah) = 5dd22373fc8cc6119c3137dfeaaeae08b9a2be38 +SHA1 (patch-ai) = e72e42897f221929aa269800a11e37ea2dd4419c +SHA1 (patch-aj) = c400eb5ec1f46def1105ddb6e6a2a1397f8ec54e diff --git a/emulators/doscmd/patches/patch-aj b/emulators/doscmd/patches/patch-aj new file mode 100644 index 00000000000..720af782e19 --- /dev/null +++ b/emulators/doscmd/patches/patch-aj @@ -0,0 +1,33 @@ +$NetBSD: patch-aj,v 1.1 2001/03/16 13:59:54 wiz Exp $ + +--- port.c.orig Wed Apr 10 12:52:15 1996 ++++ port.c +@@ -63,7 +63,7 @@ + goto bad; + } + while (cnt--) { +- ioports[port/32] |= (1 << (port%32)); ++ ioports[port/32] &= ~(1 << (port%32)); + port++; + } + if (i386_set_ioperm(ioports) < 0) { +@@ -82,7 +82,7 @@ + goto bad; + } + while (cnt--) { +- ioports[port/32] &= ~(1 << (port%32)); ++ ioports[port/32] |= (1 << (port%32)); + port++; + } + if (i386_set_ioperm(ioports) < 0) { +@@ -169,6 +169,10 @@ + portsw[i].p_inb = inb_nullport; + if (portsw[i].p_outb == 0) + portsw[i].p_outb = outb_nullport; ++ } ++ ++ for (i = 0; i < MAXPORT/32; i++) { ++ ioports[i] = 0xffffffff; + } + } + -- cgit v1.2.3