]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: dynamically allocate segment tables
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jul 2005 18:44:19 +0000 (11:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:25:58 +0000 (16:25 -0700)
commitff668607da86d4e6a68d2e1b7d55a433f69405bf
tree60f2117ffb85f61fcdc0e17d864d0114096a4192
parentfe5d5765e3cb372a815b95d32cf6b4d84b54b1c7
[PATCH] ppc64: dynamically allocate segment tables

PPC64 machines before Power4 need a segment table page allocated for each
CPU.  Currently these are allocated statically in a big array in head.S for
all CPUs.  The segment tables need to be in the first segment (so
do_stab_bolted doesn't take a recursive fault on the stab itself), but
other than that there are no constraints which require the stabs for the
secondary CPUs to be statically allocated.

This patch allocates segment tables dynamically during boot, using
lmb_alloc() to ensure they are within the first 256M segment.  This reduces
the kernel image size by 192k...

Tested on RS64 iSeries, POWER3 pSeries, and POWER5.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/head.S
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/smp.c
arch/ppc64/mm/stab.c
include/asm-ppc64/mmu.h