D
D
Denisca Gareev2021-07-02 18:09:52
assembler
Denisca Gareev, 2021-07-02 18:09:52

How to enter virtual mode from protected?

I write a console in assembler (nasm) and c. I am writing from the lesson UNIX-like operating system: writing the kernel on ... . On the OSDev Wiki I read that it is impossible to work with pci from the protected mode in which I "sit". How then to enter the virtual mode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2021-07-06
@jcmvbkbc

I read on the OSDev Wiki that it's impossible to work with pci from the protected mode in which I "sit".

where exactly did you read it? Read carefully again. To interact with the PCI configuration space on x86, you need to use the I / O ports 0xCF8 and 0xCFC. Through them, you can configure the BARs of the PCI device, i.e. place its registers/memory in the physical address space.
How then to enter the virtual mode?

in what "virtual" mode?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question