Regarding enable paging code and swapper_pg_dir.
mindentropy
mindentropy at gmail.com
Sat Apr 2 13:48:19 EDT 2011
On Saturday 02 Apr 2011 9:55:35 pm James Light wrote:
>
> To put the physical address into cr3 later.
> $swapper_pg_dir is not the PHYSICAL address of the PGD.
Correct me if I am wrong but a mov $foo,%eax would move the address of foo
variable to eax right? Or is there a macro somewhere where they are adding
PAGE_OFFSET to the address so that the $swapper_pg_dir - __PAGE_OFFSET
justifies?
More information about the Kernelnewbies
mailing list