Advertising (This ad goes away for registered users. You can Login or Register)

x86 Programming

Discuss about your favorite (gaming...or not) devices here. The most popular ones will end up getting their own categories
Programming discussions for your favorite Device
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Strangelove
Posts: 286
Joined: Thu Nov 25, 2010 6:32 pm

Re: x86 Programming

Post by Strangelove » Sat Apr 30, 2011 12:46 pm

What do mean you have drivers? If you have a hardware driver for ATA hard-disks I fail to see the problem. I already told you how to do this. No one here wants to spoon-feed you because you're too lazy to read existing documentation or source code.

Unless you don't have a harddisk driver in which case you're out of luck. You can't access the harddisk or any other hardware from protected mode without a driver for the device. ISRs are in 99% of all cases real-mode only! So stick to real-mode (like I already told you).
Advertising
"If you have specific questions ... don't hesitate to ask as the more generic the question is the more philosophic the answer will be" - PSPWizard

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: x86 Programming

Post by m0skit0 » Sat Apr 30, 2011 1:52 pm

Strangelove wrote:You can't access the harddisk or any other hardware from protected mode without a driver for the device.
Sorry but the drivers run on protected mode, like on all modern OS, so you can access hardware from protected mode perfectly. You might have a confusion with the fact that user-mode processes cannot access the hardware when in protected mode (and even so this is not correct anyway). There are mechanisms built into the CPU to help multitasking and memory/hardware access protection, but that doesn't mean his/my/your/any OS has to implement them. It depends on the OS design.
Advertising
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Strangelove
Posts: 286
Joined: Thu Nov 25, 2010 6:32 pm

Re: x86 Programming

Post by Strangelove » Sat Apr 30, 2011 3:02 pm

@m0skit0: I was programming hardware drivers when most of the users on this forum was still wearing diapers! And the first computer I programmed on wasn't even Intel architecture, although it's Intel architecture I know best. Don't be fooled just because I simplify an explanation.

I don't like wasting my time on people that don't have the patience to read documentation. It's quite enough to point them in the right direction, which I am nice enough to do.
"If you have specific questions ... don't hesitate to ask as the more generic the question is the more philosophic the answer will be" - PSPWizard

Post Reply

Return to “Programming and Security”