Re: [PATCH] x86: fix init_memory_mapping over boundary v4

From: Jeremy Fitzhardinge
Date: Sun Jun 29 2008 - 01:18:39 EST


Yinghai Lu wrote:
We should really define X_index() to return 0 for folded pagetable level X.
I've had to put similar #ifdefs in other code. Also, for the purposes of
making this code more unifiable, it's probably better to test for "#if
PAGETABLE_LEVELS >= 3" rather than for PAE specifically.

does all cpu support >=3?

Well, x86 32-bit PAE is 3 level, and 64-bit is 4 level; both have a meaningful set of pmd operations.


Is this the same as "extra = (end + PMD_SIZE + 1) & PMD_MASK"?

extra = end & PMD_MASK;
extra+ = PMD_SIZE;

OK. I wasn't sure if your intent was to round up to the next PMD_SIZE or add a whole new PMD_SIZE.

J
--
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/