N
N
Nikita Vorobyov2018-09-26 09:50:26
Iron
Nikita Vorobyov, 2018-09-26 09:50:26

How to work with a hard drive through the I / O ports in protected mode?

I'm trying to write an OS in C and assembler, with compatibility for intel x86 processors. The OS is running in Protected Mode, and a question has arisen.
Is it possible to work with a hard drive programmatically, through I / O ports, without using interrupts?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
res2001, 2018-09-26
@res2001

I wish you good luck in your endeavor!
On the question - it will not work with the equipment at all without interruptions.
To unload the CPU, look towards DMA.

R
Ruslan Fedoseev, 2018-09-26
@martin74ua

Google, such Google
perscom.ru/2012-03-23-14-46-26/89-vvedenie1/556-20...
dims.karelia.ru/x86/env_6.shtml

S
stul5tul, 2018-09-26
@stul5tul

Is it possible to work with a hard drive programmatically, through I / O ports, without using interrupts?

If we are talking about a regular OS, then it will not let a simple program to ports directly:
https://ru.wikipedia.org/wiki/%D0%A0%D0%B5%D0%B6%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question