From 3a8cad3c146265ec614ac8623cf6db94d0ab2ed3 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 5 Jun 2012 15:13:21 -0700 Subject: Shrink the stack sizes we need in coreboot We accomplish this goal by getting rid of the huge auto array in the ram stage. This will in turn let us reduce CONFIG_STACK_SIZE. We have to leave it on the stack in CAR as that's the simple way to keep it private. It does not matter then as there is only one core that is active. Change-Id: Ie37a057ccae088b7f3bb4aab6de2713e64d96df6 Signed-off-by: Ronald G. Minnich Reviewed-on: http://review.coreboot.org/1271 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/lib/lzma.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/lzma.c') diff --git a/src/lib/lzma.c b/src/lib/lzma.c index bc38f353f9..f0b88c12e2 100644 --- a/src/lib/lzma.c +++ b/src/lib/lzma.c @@ -23,6 +23,11 @@ unsigned long ulzma(unsigned char * src, unsigned char * dst) int res; CLzmaDecoderState state; SizeT mallocneeds; +#if !defined(__PRE_RAM__) + /* in ramstage, this can go in BSS */ + static +#endif + /* in pre-ram, it must go on the stack */ unsigned char scratchpad[15980]; memcpy(properties, src, LZMA_PROPERTIES_SIZE); -- cgit v1.2.3