On Tue, Oct 09, 2007 at 10:35:43PM +0200, Franck Bui-Huu wrote: > This patch reduces the kernel image size by making these 2 arrays > automatic variables. > > tlbex.o~old => tlbex.o > text: 9840 9812 -28 0% > data: 3904 1344 -2560 -65% > bss: 1568 1568 0 0% > total: 15312 12724 -2588 -16% > > It increases the stack pressure a lot (more than 2500 bytes) but > at this stage in the boot process, it shouldn't matter. Even more for 64-bit kernel - and I would really like to keep reduce the kernel stack for 64-bit kernels, THREAD_SIZE_ORDER 2 is already slightly painful when memory becomes fragmented. The other issue is that with CPU plugging (halfbreed patches to add that to MIPS are around) this code can be called at any time, not only during early startup when at most a timer interrupt may strike. Bootmem maybe? Ralf