powerpc: Fix bug arising from having multiple memory_limit variables
We had a static memory_limit in prom.c, and then another one defined
in setup_64.c and used in numa.c, which resulted in the kernel crashing
when mem=xxx was given on the command line. This puts the declaration
in system.h and the definition in mem.c. This also moves the
definition of tce_alloc_start/end out of setup_64.c.
Signed-off-by:
Paul Mackerras <paulus@samba.org>
Showing
- arch/powerpc/kernel/prom.c 1 addition, 3 deletionsarch/powerpc/kernel/prom.c
- arch/powerpc/kernel/setup_64.c 0 additions, 9 deletionsarch/powerpc/kernel/setup_64.c
- arch/powerpc/mm/mem.c 1 addition, 0 deletionsarch/powerpc/mm/mem.c
- arch/powerpc/mm/numa.c 1 addition, 1 deletionarch/powerpc/mm/numa.c
- arch/powerpc/platforms/iseries/setup.c 0 additions, 2 deletionsarch/powerpc/platforms/iseries/setup.c
- arch/ppc64/kernel/prom.c 2 additions, 1 deletionarch/ppc64/kernel/prom.c
- include/asm-powerpc/system.h 1 addition, 0 deletionsinclude/asm-powerpc/system.h
- include/asm-ppc64/system.h 1 addition, 0 deletionsinclude/asm-ppc64/system.h
Loading
Please register or sign in to comment