one question about pgd allocation
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