summaryrefslogtreecommitdiff
path: root/payloads/coreinfo/cpuid.S
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-04-25 17:21:58 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-11-25 23:06:28 +0100
commit8f4baece7acc3e0ee2e3f04a181ce51b59ec4667 (patch)
tree6f7b6f98e2ecdd01dac5cc4a21f7bc09851fbc34 /payloads/coreinfo/cpuid.S
parent5cf34ce02a73d7a455626eaa8a6b7aa69127cca7 (diff)
elog: Make sure the elog data structures are initialized in elog_clear.
If elog_clear is called before other elog functions, for instance if it's called through an SMI immediately after the system boots, then the elog data structures won't have been set up and the system will go off the deep end. This change adds a call to elog_init to elog_clear to make sure things things are always initialized before we start using them. Before this change, this command would cause the system to lock up if run immediately after boot: echo 1 > /sys/firmware/gsmi/clear_eventlog After this change, that results in the log being cleared correctly. Change-Id: I45027f0dbfa40ca8c581954a93b14b4fedce91ed Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/49303 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@google.com> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/4144 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/coreinfo/cpuid.S')
0 files changed, 0 insertions, 0 deletions