From owner-freebsd-questions@FreeBSD.ORG Wed Mar 10 08:37:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FE9D16A4CE for ; Wed, 10 Mar 2004 08:37:42 -0800 (PST) Received: from mail65.messagelabs.com (mail65.messagelabs.com [216.82.244.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 0B48C43D31 for ; Wed, 10 Mar 2004 08:37:42 -0800 (PST) (envelope-from jason.dictos@yosemitetech.com) X-VirusChecked: Checked X-Env-Sender: jason.dictos@yosemitetech.com X-Msg-Ref: server-12.tower-65.messagelabs.com!1078936660!1087242 X-StarScan-Version: 5.1.15; banners=yosemitetech.com,-,- Received: (qmail 7814 invoked from network); 10 Mar 2004 16:37:41 -0000 Received: from mail.tapeware.com (HELO yt-internet.tapeware.com) (4.21.59.10) by server-12.tower-65.messagelabs.com with SMTP; 10 Mar 2004 16:37:41 -0000 Received: by mail.tapeware.com with Internet Mail Service (5.5.2657.72) id ; Wed, 10 Mar 2004 08:40:50 -0800 Message-ID: From: Jason Dictos To: 'Jerry McAllister' , doublef@tele-kom.ru Date: Wed, 10 Mar 2004 08:40:49 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain cc: Jason Dictos cc: freebsd-questions@freebsd.org Subject: RE: Using int 13 while BSD is running X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 16:37:42 -0000 DD's great and all, but I'm not talking about which method to use, I'm talking about a guaranteed way to access a device without having to rely on any device drivers. Take a look at this: http://sourceforge.net/projects/lrmi/ This provides a dpmi style interface for linux and bsd, thats exactly what I was looking for. Thanks, -Jason -----Original Message----- From: Jerry McAllister [mailto:jerrymc@clunix.cl.msu.edu] Sent: Wednesday, March 10, 2004 8:14 AM To: doublef@tele-kom.ru Cc: jason.dictos@yosemitetech.com; freebsd-questions@freebsd.org Subject: Re: Using int 13 while BSD is running > > --Signature=_Wed__10_Mar_2004_08_12_00_+0300_m3U9Vu7vS=cMcNXd > Content-Type: text/plain; charset=US-ASCII > Content-Disposition: inline > Content-Transfer-Encoding: 7bit > > On Tue, 9 Mar 2004 14:03:34 -0800 > Jason Dictos probably wrote: > > > The situation is > > this, currently we licenses Caldera DOS for a program we wrote which > > uses the int13 extensions to manipulate the systems hard drive (i.e. > > to recover partition tables and what not). This forces our > > application to be written in 16 bit mode, but it does allows us to > > not have to worry about loading any driver which would be hardware > > specific to access the hard drive. > > Through the /dev/ad[0-9] (ide) or /dev/da[0-9] (scsi/usb) you can get > access to any byte in you harddrive. They `look like' ordinary files > to most programs. Just seek the appropriate number of bytes and read > what you want (0-512 is the mbr, for example). You don't even need to > write a line in assembly for that, just plain C (or even shell-script, > if you prefer that). Gee whiz, just let dd(1) do it for you. It can seek to any position and read any number of bytes of a disk. If it gets ornery, set the block size to 1 byte - a little slow and efficient, but then it won't have trouble with other block arrangements. ////jerry > > > Is there > > any way to write a driver for BSD which would put the processor into > > real mode, therefore allowing us to use the int 13 api of the bios > > to read and write hard drives? > > Putting the cpu back into real mode is kind of perversion. And I don't > think FreeBSD provides any real mode interface. Whatever you would see > in real mode, you can bet it isn't a FreeBSD driver for your harddrive. > > -- > DoubleF > Romeo wasn't bilked in a day. > -- Walt Kelly, "Ten Ever-Lovin' Blue-Eyed Years With > Pogo" > > --Signature=_Wed__10_Mar_2004_08_12_00_+0300_m3U9Vu7vS=cMcNXd > Content-Type: application/pgp-signature > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (FreeBSD) > > iD8DBQFATqOrwo7hT/9lVdwRAinPAJ9rsC9Tzum5970w88Ze0o+skKwbTgCbBE0S > 6bUkIwtlJePcYTsq1Ja/0gU= > =F4fi > -----END PGP SIGNATURE----- > > --Signature=_Wed__10_Mar_2004_08_12_00_+0300_m3U9Vu7vS=cMcNXd-- > > ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________