public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [x86_64] Question about early page tables initialization
@ 2015-02-03 12:25 Alex Kuleshov
  2015-02-03 12:42 ` Oren Twaig
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Kuleshov @ 2015-02-03 12:25 UTC (permalink / raw)
  To: linux-kernel

Hello All,

I have a question about page tables initialization in the
arch/x86/boot/compressed/head_64.S

After we clear memory for page tables, there is code which
build PML4:

	leal	pgtable + 0(%ebx), %edi
	leal	0x1007(%edi), %eax      
	movl	%eax, 0(%edi)
        
Why there is offset 0x1007 instead just 0x7? 0x1007 is
4k + 7bit (PML4E) flags as i understand correctly. But
why we skip first 4k here?

Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-03 13:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03 12:25 [x86_64] Question about early page tables initialization Alex Kuleshov
2015-02-03 12:42 ` Oren Twaig
2015-02-03 13:00   ` Alexander Kuleshov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox