Should I implement paging before or after I enter protected mode?
Do I have to define paging by writing some code or do I not have to considering paging is set up in my GDt?
Where is the IVT located in the GDT?
What are the values for setting it for access to realmode?
Ex: 1 = The realmode value has been activated allowing you to enter realmode.
0 = The realmode value has not been activated which doesn't allow you access to realmode.
This is just an example, what are the real values for each situation?
Questions I need answering?
Re:Questions I need answering?
Better to do it after you have entered protected mode, although I think it's possible to set up paging beforehand.beyondsociety wrote:Should I implement paging before or after I enter protected mode?
You have to set up the initial page tables and page directory, enable the CR0.PG bit.Do I have to define paging by writing some code or do I not have to considering paging is set up in my GDt?
??? This makes no sense.Where is the IVT located in the GDT?
The IVT is the real-mode Interrupt Vector Table, an array of 256 segment:offset pairs located at physical address 0. The GDT is an array of protected mode segment descriptors. The GDT can't contain the IVT.
Real values of what?What are the values for setting it for access to realmode?
Ex: 1 = The realmode value has been activated allowing you to enter realmode.
0 = The realmode value has not been activated which doesn't allow you access to realmode.
This is just an example, what are the real values for each situation?
Re:Questions I need answering?
I thought about what I said about the IVT after I posted the message. What I was asking didn't really make sense. I found I link that has all the 256 Vectors for the IVT so I now understand what I was asking.
So If the Gdt doesn't contain the IVT, would the IDT at least use it or is it mainly for the Interrupts, the interrupt handler and the interrupt service routine?
So If the Gdt doesn't contain the IVT, would the IDT at least use it or is it mainly for the Interrupts, the interrupt handler and the interrupt service routine?
Re:Questions I need answering?
No, in pure protected mode (no V86), the IVT is completely unused. It is replaced by the IDT. In any case, the code that the IVT points to is useless because it (BIOS) is written with 16-bit real mode in mind. The IDT describes the handlers for all 256 interrupts.