diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-10-06 23:22:28 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-10 14:51:37 +0200 |
commit | 8386aebb9e15a94137693ea4f4df84207f71cc75 (patch) | |
tree | d290d8455eac2085f79d5c03b5b5e1f6ba222be5 /arch/sh/include/asm/mmu.h | |
parent | sh: CONFIG_PMB doesn't mean the MMU is in 32bit mode (diff) | |
download | linux-8386aebb9e15a94137693ea4f4df84207f71cc75.tar.xz linux-8386aebb9e15a94137693ea4f4df84207f71cc75.zip |
sh: Make most PMB functions static
There's no need to export the internal PMB functions for allocating,
freeing and modifying PMB entries, etc. This way we can restrict the
interface for PMB.
Also remove the static from pmb_init() so that we have more freedom in
setting up the initial PMB entries and turning on MMU 32bit mode.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/mmu.h')
-rw-r--r-- | arch/sh/include/asm/mmu.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/sh/include/asm/mmu.h b/arch/sh/include/asm/mmu.h index 5025e12b7864..9c84b4546c8d 100644 --- a/arch/sh/include/asm/mmu.h +++ b/arch/sh/include/asm/mmu.h @@ -64,16 +64,10 @@ struct pmb_entry { }; /* arch/sh/mm/pmb.c */ -int __set_pmb_entry(unsigned long vpn, unsigned long ppn, - unsigned long flags, int *entry); -int set_pmb_entry(struct pmb_entry *pmbe); -void clear_pmb_entry(struct pmb_entry *pmbe); -struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn, - unsigned long flags); -void pmb_free(struct pmb_entry *pmbe); long pmb_remap(unsigned long virt, unsigned long phys, unsigned long size, unsigned long flags); void pmb_unmap(unsigned long addr); +int pmb_init(void); #endif /* __ASSEMBLY__ */ #endif /* __MMU_H */ |