|
@@ -113,11 +113,12 @@ unsigned long __init mmu_mapin_ram(unsigned long top)
|
|
|
* of 2 between 128k and 256M.
|
|
|
*/
|
|
|
void __init setbat(int index, unsigned long virt, phys_addr_t phys,
|
|
|
- unsigned int size, int flags)
|
|
|
+ unsigned int size, pgprot_t prot)
|
|
|
{
|
|
|
unsigned int bl;
|
|
|
int wimgxpp;
|
|
|
struct ppc_bat *bat = BATS[index];
|
|
|
+ unsigned long flags = pgprot_val(prot);
|
|
|
|
|
|
if ((flags & _PAGE_NO_CACHE) ||
|
|
|
(cpu_has_feature(CPU_FTR_NEED_COHERENT) == 0))
|