Code: Select all
.enable_paging
mov eax,cr0
or eax,0x80000000
mov cr0,eax
jmp 0x08:.end
.end
mov eax,10h
mov ds,eax
mov es,eax
mov fs,eax
mov fs,eax
mov ss,eax
Correct me if I?m wrong, but the address of the PD has to be a physically address, because it gives a **** to segmentation. This is also for the PTs and the PGs.
The most OSs here move the kernel space to the last GiB, aren?t they?! So how did you all solve the problem?