From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Given Subject: Re: Using int 13 calls in elks Date: Thu, 11 Mar 2004 11:08:36 +0000 Sender: linux-8086-owner@vger.kernel.org Message-ID: <200403111108.36081.dg@cowlark.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: Linux-8086@Vger.Kernel.Org On Thursday 11 March 2004 05:51, you wrote: [...] > I have some code to port from an MSDOS based application who's main goal > was to write partition data to a bios addressable disk. Currently under > linux/bsd, I haven't found any way to call int 13 style calls from within > the protected mode operating system, however I hear that elks has some bios > disk drivers. Basically our goal with this application is to be able to > write/read from bios addressable disks in a multi threaded environment. > > Can elks help me out here? Yup; but you want to do things the Unix way, not the DOS way. ELKS has a BIOS disk driver. /dev/bda, bdb, etc IIRC. (Names might be a little off.) To access the disk directly, just open the device (as root), seek to the appropriate place, and do read() and write(). Easy! If you want to look *within* a partition, the /dev/bda1, bda2, etc point to those. Big Linux won't let you make BIOS calls *at all* (largely because most of the BIOS' data structures don't exist), but there are native Linux drivers available for practically all BIOS-addressable devices. What's the thing you want to access? -- +- David Given --McQ-+ | dg@cowlark.com | Quidquid latine dictum sit, altum viditur. | (dg@tao-group.com) | +- www.cowlark.com --+