/*
* Cannot write to CRx with PSR.ic=1
*/
- ia64_clear_ic(flags);
+ psr = ia64_clear_ic();
ia64_itr(0x1, IA64_TR_PALCODE, vaddr & mask,
- pte_val(mk_pte_phys(md->phys_addr, PAGE_KERNEL)), IA64_GRANULE_SHIFT);
+ pte_val(pfn_pte(md->phys_addr >> PAGE_SHIFT, PAGE_KERNEL)), IA64_GRANULE_SHIFT);
- local_irq_restore(flags);
+ ia64_set_psr(psr);
ia64_srlz_i();
}
}
ia64_srlz_d();
ia64_itr(0x2, IA64_TR_PERCPU_DATA, PERCPU_ADDR,
- pte_val(mk_pte_phys(__pa(my_cpu_data), PAGE_KERNEL)), PAGE_SHIFT);
+ pte_val(pfn_pte(__pa(my_cpu_data) >> PAGE_SHIFT, PAGE_KERNEL)), PAGE_SHIFT);
- __restore_flags(flags);
+ ia64_set_psr(psr);
ia64_srlz_i();
/*
ia64_set_dcr(dcr);
res = ia64_sn_probe_io_slot(0xff00000000UL, 8, &val);
printk("zzzspec: probe %ld, 0x%lx\n", res, val);
- ia64_clear_ic(flags);
+ psr = ia64_clear_ic();
ia64_itc(0x2, 0xe00000ff00000000UL,
- pte_val(mk_pte_phys(0xff00000000UL,
+ pte_val(pfn_pte(0xff00000000UL >> PAGE_SHIFT,
__pgprot(__DIRTY_BITS|_PAGE_PL_0|_PAGE_AR_RW))), _PAGE_SIZE_256M);
- local_irq_restore(flags);
+ ia64_set_psr(psr);
ia64_srlz_i ();
}