[coreboot] STACK_SIZE pcengines apu1

Paul Menzel paulepanter at users.sourceforge.net
Fri Sep 11 20:36:24 CET 2015


Dear coreboot folks,


Am Donnerstag, den 10.09.2015, 16:25 -0700 schrieb Julius Werner:
> I'd bet it's just a single large allocation somewhere. You can try adding
> 
>  CFLAGS_ramstage += -Wstack-usage=1024
> 
> somewhere in coreboot/Makefile.inc and then clean+rebuild your code while
> passing '-k' to make. You'll get a bunch of compiler warnings, and one of
> them is likely to be the culprit.

It looks like that Julius was dead on! Building the similar ASRock
E350M1 with the modification proposed by Julius, building stops with
the error below.

```
$ make
[…]
    CC         northbridge/amd/agesa/oem_s3.ramstage.o
src/northbridge/amd/agesa/oem_s3.c: In function 'OemS3Save':
src/northbridge/amd/agesa/oem_s3.c:118:14: error: stack usage might be 4144 bytes [-Werror=stack-usage=]
 AGESA_STATUS OemS3Save(void *vS3SaveParams)
              ^
```


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20150911/dbee4e97/attachment.asc>


More information about the coreboot mailing list