coreboot-kgpe-d16/payloads/libpayload/arch
Mathias Krause 7b681c5926 libpayload: x86/main - propagate return value of main()
According to coreboot’s payload API [1], the called payload should be
able to return a value via %eax. Support this by changing the prototype
of start_main() and pass on the return value of main() to the caller
instead of discarding it.

[1] https://www.coreboot.org/Payload_API

Change-Id: I8442faea19cc8e04487092f8e61aa4e5cba3ba76
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-on: https://review.coreboot.org/18334
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-02-17 17:25:11 +01:00
..
arm libpayload: head.S: Avoid clearing BSS (and heap) again 2016-08-13 02:46:19 +02:00
arm64 libpayload: arm64: Fix MMU range overlap check 2016-08-08 17:35:31 +02:00
mips libpayload: head.S: Avoid clearing BSS (and heap) again 2016-08-13 02:46:19 +02:00
x86 libpayload: x86/main - propagate return value of main() 2017-02-17 17:25:11 +01:00