Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!sri-unix!hplabs!sdcrdcf!otto!jimi!tahoe!ron From: ron@tahoe.UUCP (Ron Sheen) Newsgroups: comp.bugs.4bsd Subject: Bug in 4.3 hp driver w/ fuji 2361 disk drives Message-ID: <430@tahoe.UUCP> Date: Wed, 31-Dec-86 23:33:55 EST Article-I.D.: tahoe.430 Posted: Wed Dec 31 23:33:55 1986 Date-Received: Tue, 13-Jan-87 05:15:39 EST Reply-To: ron@tahoe.UUCP (Ron Sheen) Distribution: world Organization: University of Nevada- Reno Lines: 35 Index: sys/vaxmba/hp.c 4.3BSD Description: The distributed hp.c incorrectly initializes the hpst structure. HPDT_RM02 is set to 14 and HPDT_2361 is set to 15. There is no RM02 entry in the hpst structure and the Fuji 2361 entry is the 14'th. When attempting to access a 2361 drive, the system tries to access hpst[15]. This causes the system to panic whenever an access is made to a Fujitsu 2361 drive. Repeat-By: Access a Fuji 2361 drive, system panics with a trap type 8. Fix: (Workaround) The workaround I chose was to swap the values of HPDT_RM02 and HPDT_2361 as we don't have any RM02's. A better fix would be to make an entry for RM02's in the hpst struture. RCS file: hp.c,v retrieving revision 1.1 diff -r1.1 hp.c 197,199c197 < #define HPDT_RM02 14 < MBDT_RM02, /* beware, actually mapped */ < #define HPDT_2361 15 --- > #define HPDT_2361 14 200a199,200 > #define HPDT_RM02 15 > MBDT_RM02, /* beware, actually mapped */ -- --- Ron Sheen ...!seismo!unrvax!ron