coreboot-kgpe-d16/src/console
Vadim Bendebury 9b0584677f Avoid 64bit math on MIPS platforms
Low level 64 bit division and modulo functions are not available for
MIPS platforms, but are required by the printk formatter.

Modify the code to avoid 64 bit math when building for MIPS. In case
the user does print a value exceeding 2^32, send a few junk characters
to the output to indicate a corrupted value printed.

[pg: add the printed sequence to the comment, so git grep can find it]

BRANCH=none
BUG=none
TEST=startup code on Urara properly prints CBFS address values which
     are passed as 64 bit integers.

Change-Id: Ie777019cd8d55c53d5e816fbacfe79893c3d64c7
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 8347f914a9cceca017668f8387ba679c2c79e66d
Original-Change-Id: I25b8a900b3ba4ec1da3446dcc5f03101d5cdb757
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/232294
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9162
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@google.com>
2015-03-30 21:42:38 +02:00
..
console.c src/console: Sanitize headers and IS_ENABLED usage 2014-06-25 11:32:25 +02:00
die.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
early_print.c console: Split ROMCC helpers 2014-04-18 16:39:40 +02:00
init.c Add stage information to coreboot banner 2015-03-04 19:46:25 +01:00
Kconfig console: Allow bootblock console on MIPS 2015-03-23 15:35:06 +01:00
Makefile.inc arm64: Add support for secure monitor 2015-03-28 07:05:09 +01:00
post.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
printk.c console: Convert cbmem log line endings to UNIX standard 2015-03-25 17:25:14 +01:00
vsprintf.c src/console: Sanitize headers and IS_ENABLED usage 2014-06-25 11:32:25 +02:00
vtxprintf.c Avoid 64bit math on MIPS platforms 2015-03-30 21:42:38 +02:00