coreboot-kgpe-d16/src
Gabe Black 0bf1febed8 elog: Get rid of the descriptor type and some unnecessary wrappers
There was always exactly one elog descriptor declared and initialized, but its
contents were being accessed through a pointer that was passed back and forth
between functions instead of being accessed directly. This made the code more
verbose than it needed to be and harder to follow. To address this the
descriptor type was eliminated, its contents were turned into individual
global variables, and various functions were adjusted to no longer take the
descriptor as an argument.

Similarly, the code was more verbose and complicated than it needed to be
because of several wrapper functions which wrapped a single line of code which
called an underlying function with particular arguments and were only used
once. This makes it harder to tell what the code is doing because the call to
the real function you may already be familiar with is obscured behind a
new function you've never seen before. It also adds one more text to the file
as a whole while providing at best a marginal benefit. Those functions were
removed and their callers now call their contents directly.

Built and booted on Link. Ran mosys eventlog list. Cleared the event log
and ran mosys eventlog list again. Added 2000 events and ran mosys eventlog
list. Cleared the log again and ran mosys eventlog list.

Change-Id: I4f5f6b9f4f508548077b7f5a92f4322db99e01ca
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/49310
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/4245
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-12-02 15:18:06 +01:00
..
arch Log device path into CMOS during probe stages 2013-11-26 19:10:31 +01:00
console Log device path into CMOS during probe stages 2013-11-26 19:10:31 +01:00
cpu slippy/falco/peppy: Fix SPD GPIO initialization. 2013-12-01 23:27:10 +01:00
device Clean up POST codes for Boot State machine 2013-11-26 19:10:38 +01:00
drivers elog: Get rid of the descriptor type and some unnecessary wrappers 2013-12-02 15:18:06 +01:00
ec H8: Move EC GPE declaration to mainboard 2013-12-01 13:36:25 +01:00
include Clean up POST codes for Boot State machine 2013-11-26 19:10:38 +01:00
lib Fix build with USE_OPTION_TABLE 2013-12-01 23:15:08 +01:00
mainboard Add description to MAINBOARD_VENDOR string so it can be overridden 2013-12-02 14:59:33 +01:00
northbridge Add DDR refresh config to pei data structure. 2013-12-01 23:19:38 +01:00
southbridge lynxpoint: move all pcie device handling to pcie.c 2013-12-02 15:09:08 +01:00
superio sio1007: Properly build '.c' files 2013-11-10 14:19:28 +01:00
vendorcode slippy: Minor vboot related fixes 2013-11-25 23:27:53 +01:00
Kconfig Add GRUB2 payload to build system 2013-11-19 01:07:25 +01:00