Subject: port-mac68k/2525: mac68k serial console fails on printer port
To: None <gnats-bugs@NetBSD.ORG, jds@smerdon.livonia.mi.us>
From: John D. Smerdon <jds@smerdon.livonia.mi.us>
List: netbsd-bugs
Date: 06/06/1996 21:29:43
>Number:         2525
>Category:       port-mac68k
>Synopsis:       serial console fails on printer port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun  6 22:20:04 1996
>Last-Modified:
>Originator:     John D. Smerdon
>Organization:
	
>Release:        1.2_ALPHA
>Environment:
	
System: NetBSD smerdon.livonia.mi.us 1.2_ALPHA NetBSD 1.2_ALPHA (SMERDON) #121: Wed Jun 5 22:55:26 EDT 1996 jds@smerdon.livonia.mi.us:/usr2/src/sys/arch/mac68k/compile/SMERDON mac68k


>Description:
	Serial console fails when using the printer port.

>How-To-Repeat:
	Use the printer port for serial console using Booter 1.9.  adb_init is started
	and the serial port is not the console.  The modem port is 0x1, the printer port
	is 0x2, and the existing code only checks for the modem port (& 0x01).

>Fix:
*** /usr/src/sys/arch/mac68k/mac68k/machdep.c   Sat Jun  1 07:37:52 1996
--- machdep.c   Thu Jun  6 20:55:10 1996
***************
*** 2163,2169 ****
         * used later when we re-map the vectors from MacOS Address
         * Space to NetBSD Address Space.
         */
!       if ((mac68k_machine.serial_console & 0x01) == 0)
                mrg_MacOSROMVectors = cpui->rom_vectors;

        /*
--- 2163,2169 ----
         * used later when we re-map the vectors from MacOS Address
         * Space to NetBSD Address Space.
         */
!       if ((mac68k_machine.serial_console & 0x03) == 0)
                mrg_MacOSROMVectors = cpui->rom_vectors;

        /*

>Audit-Trail:
>Unformatted: