coreboot-kgpe-d16/src/include/console
Duncan Laurie cb73a8410c Clean up POST codes for Boot State machine
Now that there is a clearly defined boot state machine
we can add some useful post codes to indicate the current
point in the state machine by having it log a post code
before the execution of each state.

This removes the currently defined POST codes that were
used by hardwaremain in favor of a new contiguous range
that are defined for each boot state.

The reason for this is that the existing codes are mostly
used to indicate when something is done, which is confusing
for actual debug because POST code debugging relies on knowing
what is about to happen (to know what may be at fault) rather
than what has just finished.

One additonal change is added during device init step as this
step often does the bulk of the work, and frequently logs POST
codes itself.  Therefore in order to keep better track of what
device is being initialized POST_BS_DEV_INIT is logged before
each device is initialized.

interrupted boot with reset button and
gathered the eventlog.  Mosys has been extended to
decode the well-known POST codes:

26 | 2013-06-10 10:32:48 | System boot | 120
27 | 2013-06-10 10:32:48 | Last post code in previous boot | 0x75 | Device Initialize
28 | 2013-06-10 10:32:48 | Extra info from previous boot | PCI | 00:16.0
29 | 2013-06-10 10:32:48 | Reset Button
30 | 2013-06-10 10:32:48 | System Reset

Change-Id: Ida1e1129d274d28cbe8e49e4a01483e335a03d96
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/58106
Reviewed-on: http://review.coreboot.org/4231
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-11-26 19:10:38 +01:00
..
cbmem_console.h no-car/cbmemc: Fix compilation 2013-11-24 18:25:18 +01:00
console.h Log device path into CMOS during probe stages 2013-11-26 19:10:31 +01:00
loglevel.h - get rid of ASM_CONSOLE_LOGLEVEL except in two assembler files. 2010-04-01 09:50:32 +00:00
ne2k.h Drop prototype guarding for romcc 2013-05-10 00:06:46 +02:00
post_codes.h Clean up POST codes for Boot State machine 2013-11-26 19:10:38 +01:00
spkmodem.h spkmodem console 2013-04-18 22:47:59 +02:00
vtxprintf.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00