coreboot/src
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: 8347f914a9
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
..
arch mips: bring payload execution to current standards 2015-03-30 20:41:24 +02:00
console Avoid 64bit math on MIPS platforms 2015-03-30 21:42:38 +02:00
cpu x86/smm: Move SMM configuration out of generic Makefile 2015-03-30 20:41:15 +02:00
device PCIe: Revise L1 Sub-State support 2015-03-23 13:11:18 +01:00
drivers drivers/pc80/mc146818rtc_early: Honor Kconfig reboot count clear setting 2015-03-29 00:42:34 +01:00
ec chromeec: Add ACPI device for PD MCU and handle related EC host event 2015-03-27 06:30:44 +01:00
include arch/x86/boot/smbios: Rename fill_dimm_manufacturer and make public 2015-03-29 16:34:07 +02:00
lib arm64: Add support for secure monitor 2015-03-28 07:05:09 +01:00
mainboard emulation/imgvp-pistachio: Drop board 2015-03-30 20:41:21 +02:00
northbridge build system: normalize linker script file names 2015-03-28 19:14:47 +01:00
soc imgtec/pistachio: Bring uart driver to modern standards 2015-03-30 20:41:22 +02:00
southbridge build system: normalize linker script file names 2015-03-28 19:14:47 +01:00
superio superio: ite8772f: Exit extemp busy state 2015-03-21 08:44:28 +01:00
vendorcode build system: provide generic compiler flag variables 2015-03-30 20:41:13 +02:00
Kconfig Enable publishing of board ID where supported 2015-03-23 17:20:24 +01:00