m68k: add ColdFire 54xx CPU MMU memory init code
Subsystems (2)
PATCH v4 9/35 m68k: add ColdFire 54xx CPU MMU memory init code
From: Greg Ungerer <[email protected]>
Add code to the 54xx ColdFire CPU init to setup memory ready for the m68k paged memory start up.
Some of the RAM variables that were specific to the non-mmu code paths now need to be used during this setup, so when CONFIG_MMU is enabled. Move these out of page_no.h and into page.h.
Signed-off-by Greg Ungerer <[email protected]>
Acked-by Matt Waddel <[email protected]>
Acked-by Kurt Mahan <[email protected]>
---
This is a re-worked version of patch 0009 in the ColdFire/MMU series. I have moved the extern defines for the _ram* variables so that no matter whether CONFIG_MMU is set or not anyone can see them. Otherwise checkpatch complains about externs in C source files.
arch/m68k/include/asm/page.h | 4 +++ arch/m68k/include/asm/page_no.h | 3 -- arch/m68k/platform/54xx/config.c | 47 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 3 deletions(-)
arch/m68k/include/asm/page.h +4 -0
@@ -36,6 +36,10 @@ typedef struct page *pgtable_t;#define __pgd (x) ((pgd_t) { (x) } )#define __pgprot (x) ((pgprot_t) { (x) } ) +extern unsigned long _rambase; +extern unsigned long _ramstart; +extern unsigned long _ramend; +#endif /* !__ASSEMBLY__ */ #ifdef CONFIG_MMU
arch/m68k/include/asm/page_no.h +0 -3
@@ -5,9 +5,6 @@extern unsigned long memory_start;extern unsigned long memory_end; -extern unsigned long _rambase; -extern unsigned long _ramstart; -extern unsigned long _ramend;#define get_user_page (vaddr) __get_free_page(GFP_KERNEL)#define free_user_page (page, addr) free_page(addr)
arch/m68k/platform/54xx/config.c +47 -0
66 lines not on this page · raw message
Signature · 1 line
1.7.0.4