aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-02-22 06:09:02 -0500
committerMichal Simek <monstr@monstr.eu>2010-03-11 08:14:20 -0500
commitae8ee1505162f47f8b8cf7a44c26ea6b172e1445 (patch)
tree11580f75f427477fc1c943619bff4e0841dc5847 /arch/microblaze/include
parentb8a84059b5c3a3b9ba3973dcdab1e1d9cc4975e0 (diff)
microblaze: pgtable.h: move consistent functions
Consistent functions will be used for noMMU and MMU kernels. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r--arch/microblaze/include/asm/pgtable.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h
index e8d25fb8847c..adcc3320e52a 100644
--- a/arch/microblaze/include/asm/pgtable.h
+++ b/arch/microblaze/include/asm/pgtable.h
@@ -68,7 +68,6 @@ static inline int pte_file(pte_t pte) { return 0; }
68 68
69extern unsigned long va_to_phys(unsigned long address); 69extern unsigned long va_to_phys(unsigned long address);
70extern pte_t *va_to_pte(unsigned long address); 70extern pte_t *va_to_pte(unsigned long address);
71extern unsigned long ioremap_bot, ioremap_base;
72 71
73/* 72/*
74 * The following only work if pte_present() is true. 73 * The following only work if pte_present() is true.
@@ -411,7 +410,7 @@ static inline unsigned long pte_update(pte_t *p, unsigned long clr,
411 mts rmsr, %2\n\ 410 mts rmsr, %2\n\
412 nop" 411 nop"
413 : "=&r" (old), "=&r" (tmp), "=&r" (msr), "=m" (*p) 412 : "=&r" (old), "=&r" (tmp), "=&r" (msr), "=m" (*p)
414 : "r" ((unsigned long)(p+1) - 4), "r" (clr), "r" (set), "m" (*p) 413 : "r" ((unsigned long)(p + 1) - 4), "r" (clr), "r" (set), "m" (*p)
415 : "cc"); 414 : "cc");
416 415
417 return old; 416 return old;
@@ -580,18 +579,11 @@ void mapin_ram(void);
580int map_page(unsigned long va, phys_addr_t pa, int flags); 579int map_page(unsigned long va, phys_addr_t pa, int flags);
581 580
582extern int mem_init_done; 581extern int mem_init_done;
583extern unsigned long ioremap_base;
584extern unsigned long ioremap_bot;
585 582
586asmlinkage void __init mmu_init(void); 583asmlinkage void __init mmu_init(void);
587 584
588void __init *early_get_page(void); 585void __init *early_get_page(void);
589 586
590void *consistent_alloc(int gfp, size_t size, dma_addr_t *dma_handle);
591void consistent_free(void *vaddr);
592void consistent_sync(void *vaddr, size_t size, int direction);
593void consistent_sync_page(struct page *page, unsigned long offset,
594 size_t size, int direction);
595#endif /* __ASSEMBLY__ */ 587#endif /* __ASSEMBLY__ */
596#endif /* __KERNEL__ */ 588#endif /* __KERNEL__ */
597 589
@@ -600,6 +592,14 @@ void consistent_sync_page(struct page *page, unsigned long offset,
600#ifndef __ASSEMBLY__ 592#ifndef __ASSEMBLY__
601#include <asm-generic/pgtable.h> 593#include <asm-generic/pgtable.h>
602 594
595extern unsigned long ioremap_bot, ioremap_base;
596
597void *consistent_alloc(int gfp, size_t size, dma_addr_t *dma_handle);
598void consistent_free(void *vaddr);
599void consistent_sync(void *vaddr, size_t size, int direction);
600void consistent_sync_page(struct page *page, unsigned long offset,
601 size_t size, int direction);
602
603void setup_memory(void); 603void setup_memory(void);
604#endif /* __ASSEMBLY__ */ 604#endif /* __ASSEMBLY__ */
605 605