Re: one question about pgd allocation

From: Andi Kleen
Date: Fri Jul 01 2005 - 08:18:38 EST


"liyu@WAN" <liyu@xxxxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/