Re: hard disk I/O



On 24 Nov 2006 17:30:35 -0800, mike7411@xxxxxxxxx wrote:



ArarghMail611NOSPAM@xxxxxxxxxxxxxxxxx wrote:
On 24 Nov 2006 11:08:07 -0800, mike7411@xxxxxxxxx wrote:

I was just wondering how hard disk I/O is typically performed in
protected mode.

The BIOS disk interrupts don't seem to work properly, and I think they
assume the 16 bit memory model.

Well, if you are lazy, you hop back to real mode.

Otherwise, you write a protected mode driver.


Would a protected mode driver use something like the OUT command to
talk to the hard drive?

Yes. And IN. But not INT. :-)

A protected mode driver would do all that same things that a real mode
driver would, just following the rules for protected mode.

The easiest way to find a sample is to dig thru the Linux or *BSD
sources.
--
ArarghMail611 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the garbage from the reply address.
.



Relevant Pages

  • Re: hard disk I/O
    ... The BIOS disk interrupts don't seem to work properly, ... assume the 16 bit memory model. ... you write a protected mode driver. ...
    (alt.lang.asm)
  • Re: Hello Everyone!
    ... (which is a protected mode) ... And VirtualBox does *not* emulate the processor ... the hardware does not have virtualization extensions. ... of 16-bit real mode code - again, ...
    (comp.os.linux.misc)
  • Re: basic architecture question
    ... support any more - like robertwessel said. ... mode, 16 bit protected mode, 32 bit protected mode, and 64 bit ... The processor itself runs in either real mode, ... which could not switch back into real ...
    (comp.lang.asm.x86)
  • Re: DPMI raw mode switch
    ... I've just entered protected mode for the first time, ... How can I save real mode registers when ... Simulate DPMI real mode interrupt. ... (get raw mode switch address). ...
    (alt.lang.asm)
  • Re: Hello Everyone!
    ... is a protected mode) it no longer supports real mode or V86 mode. ... then executed by the underlying UNIX operating system. ... The only way to execute 16-bit real mode code on 64-bit operating ...
    (comp.os.linux.misc)