Skip to contentSkip to conversation

one question about pgd allocation

DISCUSSION Andi Kleen 1 participant 1 message Jul 1, 2005 1 message not in the archive

lore
Share & tools
lore

Andi Kleen

author
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · "liyu@WAN" <[email protected]> writes:

I can not understand this. I search intel developer mannal. but
nothing to help.
Who can tell me why?

bit 0 is the present bit which needs to be set on the PGD, otherwise the CPU will ignore it. A clearer way to write this would have been

        __pgd(__pa(pmd) | _PAGE_PRESENT)

-Andi