From mboxrd@z Thu Jan 1 00:00:00 1970 From: mindentropy@gmail.com (mindentropy) Date: Sat, 2 Apr 2011 23:18:19 +0530 Subject: Regarding enable paging code and swapper_pg_dir. In-Reply-To: <20110402162534.GB7686@stevens.edu> References: <201104020137.12899.mindentropy@gmail.com> <201104021333.21661.mindentropy@gmail.com> <20110402162534.GB7686@stevens.edu> Message-ID: <201104022318.19652.mindentropy@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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?