diff options
author | Michal Simek <monstr@monstr.eu> | 2010-02-22 06:09:02 -0500 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-03-11 08:14:20 -0500 |
commit | ae8ee1505162f47f8b8cf7a44c26ea6b172e1445 (patch) | |
tree | 11580f75f427477fc1c943619bff4e0841dc5847 /arch/microblaze/include | |
parent | b8a84059b5c3a3b9ba3973dcdab1e1d9cc4975e0 (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.h | 18 |
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 | ||
69 | extern unsigned long va_to_phys(unsigned long address); | 69 | extern unsigned long va_to_phys(unsigned long address); |
70 | extern pte_t *va_to_pte(unsigned long address); | 70 | extern pte_t *va_to_pte(unsigned long address); |
71 | extern 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); | |||
580 | int map_page(unsigned long va, phys_addr_t pa, int flags); | 579 | int map_page(unsigned long va, phys_addr_t pa, int flags); |
581 | 580 | ||
582 | extern int mem_init_done; | 581 | extern int mem_init_done; |
583 | extern unsigned long ioremap_base; | ||
584 | extern unsigned long ioremap_bot; | ||
585 | 582 | ||
586 | asmlinkage void __init mmu_init(void); | 583 | asmlinkage void __init mmu_init(void); |
587 | 584 | ||
588 | void __init *early_get_page(void); | 585 | void __init *early_get_page(void); |
589 | 586 | ||
590 | void *consistent_alloc(int gfp, size_t size, dma_addr_t *dma_handle); | ||
591 | void consistent_free(void *vaddr); | ||
592 | void consistent_sync(void *vaddr, size_t size, int direction); | ||
593 | void 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 | ||
595 | extern unsigned long ioremap_bot, ioremap_base; | ||
596 | |||
597 | void *consistent_alloc(int gfp, size_t size, dma_addr_t *dma_handle); | ||
598 | void consistent_free(void *vaddr); | ||
599 | void consistent_sync(void *vaddr, size_t size, int direction); | ||
600 | void consistent_sync_page(struct page *page, unsigned long offset, | ||
601 | size_t size, int direction); | ||
602 | |||
603 | void setup_memory(void); | 603 | void setup_memory(void); |
604 | #endif /* __ASSEMBLY__ */ | 604 | #endif /* __ASSEMBLY__ */ |
605 | 605 | ||