Regarding enable paging code and swapper_pg_dir.

mindentropy mindentropy at gmail.com
Fri Apr 1 16:07:12 EDT 2011


Hi All,

  In the code http://lxr.linux.no/#linux+v2.6.12/arch/i386/kernel/head.S#L186 
I am not able to understand what's the reason for subtracting swapper_pg_dir 
with __PAGE_OFFSET(0xc0000000). i.e. movl $swapper_pg_dir-__PAGE_OFFSET 
Shouldn't it be movl $swapper_pg_dir, %eax?

Thanks.



More information about the Kernelnewbies mailing list