coreinfo: Rewrite bootlog_module
commit37f4565b8b9da60c817572b0e9dd161b5815deee
authorYasha Cherikovsky <yasha.che3@gmail.com>
Sat, 14 Nov 2015 17:21:14 +0000 (14 19:21 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Sat, 21 Nov 2015 17:03:40 +0000 (21 18:03 +0100)
treec3f596ee0d81e9f06366b98d4a5b3d21a8f483fd
parent75cdfd1d06da8a14c549792f7c550753c29a0591
coreinfo: Rewrite bootlog_module

The old bootlog_module implementation was completely broken:
- It assumed that the console buffer is located at address 0x90000,
  and of size 64K. It is not correct nowadays.
- It displayed the buffer in a very hacky way, the code was riddled with
  TODOs and FIXMEs. Scrolling had sometimes unexpected behavior.

The new implementation:
- Uses the cbmem console as the source of data.
  It takes the console information from lib_sysinfo of libpayload, which is
  constructed from the coreboot tables (no more hardcoded adressess).
- Properly sanitizes the console buffer for display, which makes
  scolling and display much easier to implement.

Change-Id: I3f87ec920631da2acfd3f52273228703f22f469f
Signed-off-by: Yasha Cherikovsky <yasha.che3@gmail.com>
Reviewed-on: http://review.coreboot.org/12440
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
payloads/coreinfo/bootlog_module.c