diff options
author | Michal Simek <monstr@monstr.eu> | 2010-02-08 10:41:38 -0500 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-03-23 04:28:18 -0400 |
commit | 95b0f9ea66661681f6ae081ea28416744d622c07 (patch) | |
tree | c4d387b9e4a5add47945be3036c7e5682ea5330c /arch/microblaze/include | |
parent | 3a1d26769f61fe8a1f517a66dfcee935a76fd61c (diff) |
microblaze: Improve TLB calculation for small systems
Systems with small amount of memory need to be handled
differently. Linux can't allocate the whole 32MB with two TLBs
because then there is no MMU protection.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/setup.h | 3 | ||||
-rw-r--r-- | arch/microblaze/include/asm/system.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/setup.h b/arch/microblaze/include/asm/setup.h index 6c72ed7eba98..9f195c094731 100644 --- a/arch/microblaze/include/asm/setup.h +++ b/arch/microblaze/include/asm/setup.h | |||
@@ -39,7 +39,8 @@ extern void of_platform_reset_gpio_probe(void); | |||
39 | void time_init(void); | 39 | void time_init(void); |
40 | void init_IRQ(void); | 40 | void init_IRQ(void); |
41 | void machine_early_init(const char *cmdline, unsigned int ram, | 41 | void machine_early_init(const char *cmdline, unsigned int ram, |
42 | unsigned int fdt, unsigned int msr); | 42 | unsigned int fdt, unsigned int msr, unsigned int tlb0, |
43 | unsigned int tlb1); | ||
43 | 44 | ||
44 | void machine_restart(char *cmd); | 45 | void machine_restart(char *cmd); |
45 | void machine_shutdown(void); | 46 | void machine_shutdown(void); |
diff --git a/arch/microblaze/include/asm/system.h b/arch/microblaze/include/asm/system.h index 5a433cbaafb3..01228d2b1351 100644 --- a/arch/microblaze/include/asm/system.h +++ b/arch/microblaze/include/asm/system.h | |||
@@ -83,6 +83,7 @@ void default_idle(void); | |||
83 | void free_init_pages(char *what, unsigned long begin, unsigned long end); | 83 | void free_init_pages(char *what, unsigned long begin, unsigned long end); |
84 | void free_initmem(void); | 84 | void free_initmem(void); |
85 | extern char *klimit; | 85 | extern char *klimit; |
86 | extern unsigned long kernel_tlb; | ||
86 | extern void ret_from_fork(void); | 87 | extern void ret_from_fork(void); |
87 | 88 | ||
88 | extern void *alloc_maybe_bootmem(size_t size, gfp_t mask); | 89 | extern void *alloc_maybe_bootmem(size_t size, gfp_t mask); |