From appli.appli.se!appli.se!owner-amiga-mach@appli.se Sun Oct 18 09:10:55 1992
Received: by bruce (5.57/1.34)
	id AA16083; Sun, 18 Oct 92 09:10:16 +1000
Received: by mail.swip.net (5.65c8/1.2)
	id AA26828; Sat, 17 Oct 1992 23:57:57 +0100
Received: by appli.appli.se (/\=-/\ Smail3.1.17.5 #17.26)
	id <m0mgNJH-0000sAC@appli.appli.se>; Sun, 18 Oct 92 01:11 MDT
Received: by appli.appli.se (/\=-/\ Smail3.1.17.5 #17.26)
	id <m0mgNJH-0000cCC@appli.appli.se>; Sun, 18 Oct 92 01:11 MDT
Return-Path: <msu.oscs.montana.edu!osymh>
Received: by appli.appli.se (/\=-/\ Smail3.1.17.5 #17.26)
	id <m0mgNJ6-0000t2C@appli.appli.se>; Sun, 18 Oct 92 01:11 MDT
Received: from trex.oscs.montana.edu by mail.swip.net (5.65c8/1.2)
	id AA26170; Sat, 17 Oct 1992 22:59:07 +0100
Received: by trex.oscs.montana.edu (MX V3.1C) id 8471; Sat, 17 Oct 1992
          15:58:55 MDT
Sender: osymh@trex.oscs.montana.edu
Date: Sat, 17 Oct 1992 15:58:50 MDT
From: "Michael L. Hitch" <osymh@trex.oscs.montana.edu>
Reply-To: osymh@trex.oscs.montana.edu
To: amiga-mach@appli.se
Message-Id: <009623BD.800FAB20.8471@trex.oscs.montana.edu>
Subject: Re: Changes to kern/bootstrap.c to read scsi devices
Sender: owner-amiga-mach@appli.se
Status: OR

I found a small bug in the read_test routine that reads the scsi devices.  It
shows up when attempting to read from a tape device.  The sctape_open routine
expects ior->io_device to be pointing to a device structure.  These changes
create a dummy device structure and sets up io_device to point to it.

[This is "pseudo-diff" to show what I added.]
----
  #include <device/io_req.h>
+ #include <device/dev_hdr.h>

----
	unsigned char *buf;
+	struct device dummy_device;
	int read_test_done ();
----
	}
+	dummy_device.flag = 0;
	io_req_alloc(ior, 0);
	ior->io_unit = dev;
+	ior->io_device = &dummy_device;
	i = rz_open (dev, 0, ior);
---
---
Michael L. Hitch                        osymh@msu.oscs.montana.edu 
Computer Consultant                     OSYMH@MTSUNIX1.BITNET
Office of Systems and Computing Services
Montana State University
Bozeman, MT     USA

