Don't do a call as the first instruction in libpayload.
authorMarc Jones <marcj303@gmail.com>
Thu, 6 Oct 2011 22:38:35 +0000 (16:38 -0600)
committerMarc Jones <marcj303@gmail.com>
Tue, 11 Oct 2011 09:47:06 +0000 (11:47 +0200)
commit5f145faff88ac6a0951277142e8b4f8116ae79de
tree4af0f5b5d29daa622802f6ca0ca08134585308f4
parent07bf9119310ceece5a6c76907004bc96af1a38cc
Don't do a call as the first instruction in libpayload.

Doing a call before the payload has set up its stack is risky. The stack may
not be in a favorable location. Normally this is not an issue with coreboot
or other well behaved callers.

Change-Id: Ie6f6748a471324b29ebad045c807dfc9f4b92034
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: http://review.coreboot.org/240
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/arch/i386/head.S