coreboot-kgpe-d16/payloads/libpayload/arch/x86
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
..
coreboot.c libpayload: move MRC processing to x86 path and remove ACPI_GNVS duplication 2015-03-20 15:33:47 +01:00
exception.c libpayload: Rework exception hook interface 2015-01-09 07:05:15 +01:00
exception_asm.S libpayload: Rework exception hook interface 2015-01-09 07:05:15 +01:00
exec.S libpayload: x86/exec - fix argc/argv value passing 2017-02-17 17:24:08 +01:00
gdb.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
head.S libpayload: head.S: Avoid clearing BSS (and heap) again 2016-08-13 02:46:19 +02:00
Kconfig libpayload: Rename Config.in -> Kconfig 2015-06-12 02:42:43 +02:00
libpayload.ldscript libpayload: Move base address, stack and heap size to Kconfig 2016-03-15 20:53:38 +01:00
main.c libpayload: x86/main - propagate return value of main() 2017-02-17 17:25:11 +01:00
Makefile.inc libpayload: Keep stack boundary small on x86 2015-07-01 20:55:18 +02:00
multiboot.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
rom_media.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
selfboot.c libpayload: Introduce new Kconfig to explicitly allow GPL code 2015-01-09 07:06:27 +01:00
string.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sysinfo.c libpayload: honor TSC information under CONFIG_LP_TIMER_RDTSC 2016-02-19 19:50:25 +01:00
timer.c libpayload: timer: Move the timer drivers from depthcharge to libpayload. 2014-11-13 06:23:07 +01:00
util.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
virtual.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00