diff options
Diffstat (limited to 'xenolinux-2.4.25-sparse/arch/xeno/mm/ioremap.c')
-rw-r--r-- | xenolinux-2.4.25-sparse/arch/xeno/mm/ioremap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xenolinux-2.4.25-sparse/arch/xeno/mm/ioremap.c b/xenolinux-2.4.25-sparse/arch/xeno/mm/ioremap.c index e0e68216a3..434e82c971 100644 --- a/xenolinux-2.4.25-sparse/arch/xeno/mm/ioremap.c +++ b/xenolinux-2.4.25-sparse/arch/xeno/mm/ioremap.c @@ -20,14 +20,13 @@ #if defined(CONFIG_XENO_PRIV) -#define direct_set_pte(_p, _v) queue_unchecked_mmu_update((_p), (_v).pte_low) +/* These hacky macros avoid phys->machine translations. */ #define __direct_pte(x) ((pte_t) { (x) } ) #define __direct_mk_pte(page_nr,pgprot) \ __direct_pte(((page_nr) << PAGE_SHIFT) | pgprot_val(pgprot)) #define direct_mk_pte_phys(physpage, pgprot) \ __direct_mk_pte((physpage) >> PAGE_SHIFT, pgprot) - static inline void direct_remap_area_pte(pte_t *pte, unsigned long address, unsigned long size, @@ -47,7 +46,7 @@ static inline void direct_remap_area_pte(pte_t *pte, printk("direct_remap_area_pte: page already exists\n"); BUG(); } - direct_set_pte(pte, pte_mkio(direct_mk_pte_phys(machine_addr, prot))); + set_pte(pte, pte_mkio(direct_mk_pte_phys(machine_addr, prot))); address += PAGE_SIZE; machine_addr += PAGE_SIZE; pte++; |