SeeSoftware wrote:
now lets say the directory is stored at 0xc0200000 (physical address 0x300000)
do i have to set cr3 to 0xc0200000 or 0x300000 ?
0x300000
SeeSoftware wrote:
linear = physical
I don't want to sound like I'm nit-picking, but you have to be very precise in your vocabulary (otherwise you just end up confusing yourself!)
Setting up flat mode means offsets = linear address; your GDT alone tells us nothing about physical addresses.
SeeSoftware wrote:
(i have gdt mapped from 0x0 to 0xFFFFFFFF...
Generally we'd say we set up flat mode; I generally see "mapping" to refer to pages rather than segments.
SeeSoftware wrote:
Sry for bad english it is not my first language.
I think you did pretty good; I had no trouble understanding you