Cache boot-fail-wait to avoid romfile access after POST.
commit11a7234491cb2a027b0fa5e82af38a3e78b44c80
authorKevin O'Connor <kevin@koconnor.net>
Tue, 5 Mar 2013 09:52:21 +0000 (5 17:52 +0800)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 6 Mar 2013 01:16:52 +0000 (5 20:16 -0500)
treeea27285faebff206690bbfaeec448d78305ce7d0
parent4bd33cab8dce94573c8c7eefe5688c709a1becdc
Cache boot-fail-wait to avoid romfile access after POST.

Memory allocated with malloc_tmp() can't be used after the POST phase.
So, access boot-fail-wait in post phase and store it for the boot
phase to use.  This fixes the regression introduced by commit
59d6ca52.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Amos Kong <akong@redhat.com>
src/boot.c