> PTE_* macros are no longer valid names to be used outside the header
> files and the small assembler fragments that live in arch/arm/mm.
>
> _L_PTE_* macros are not to be used outside the pgtable.h header file.
>
> The correct macros to use are the L_PTE_* macros, and the
> PAGE_* macros.
PAGE_KERNEL, type pgprot_t, is a struct which prevents me from doing
PAGE_KERNEL & (~(L_PTE_BUFFERABLE | L_PTE_CACHEABLE)).
Some other alternatives would be
__pgprot(L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_WRITE)
or
__pgprot(pgprot_val(PAGE_KERNEL) & (~(L_PTE_BUFFERABLE | L_PTE_CACHEABLE)))
How would you specify a non-bufferable, non-cachable page in a driver?
> However, having said that, I note that there is a very big mistake in
> your original message - PTE_TYPE_SMALL. This should not, under any
> circumstance be passed into any routine. The only valid macros you
> should be using for the pagetable stuff are the L_PTE_* macros, and
> maybe at a far shot the PMD_* macros.
Thanks.
Eric
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]