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 <rminnich@chromium.org> Reviewed-on: http://review.coreboot.org/1271 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
3f6a4d7164
commit
3a8cad3c14
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue