From: "Rajat Jain" Subject: Re: Issuing BIOS interrupts in Linux Date: Sat, 5 Aug 2006 18:41:04 +0530 Message-ID: References: <1154740833.11701.1.camel@uranium.hq.netapp.com> <292693080608050553x756e4276k33c5afa80f686f44@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <292693080608050553x756e4276k33c5afa80f686f44@mail.gmail.com> Content-Disposition: inline Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: idlisambar@gmail.com, kernelnewbies , Linux Newbie > Hi List, > > I want to issue BIOS interrupts in Linux (both user space & kernel > space are fine). More specifically I want to issue BIOS interrupt 13h > for accessing disk using the BIOS routines. How can I do so (issue the > BIOS interrupt)? > Rajat > On 8/5/06, Rahul Iyer wrote: > > In a single sentence, > > "you cannot". > > The reason is that bios interrupts can only be used in real mode and not > > in protected mode. Linux runs in protected mode, and so this would not > > be possible. Uh ... :-( > > What is it you are trying to do? Maybe there's a better way to do it... > > (by using the block device subsystem, for instance) > > -rahul > > Actually I was thinking that if it is possible to perform all the Disk IO operations using the BIOS routines, then why can't we write a SINGLE disk driver that will work with all the kinds of disks. The idea was ofcourse based on the assumption that the driver will be able to do all disk operation using the BIOS interupts, instead of actually communicating with the Disk controller hardware. So all this seems like a bad idea ... or should I say TOTALLY IMPOSSIBLE? Thanks, Rajat - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs