coreboot/src
Aaron Durbin b013fff5a3 baytrail: nvm: use proper types for checking erase
The current byte value was being converted to an int
when checking against literal 0xff. As the type of
the current pointer was char (signed) it was sign
extending the value leading to 0xffffffff != 0xff.
Fix this by using an unsigned type and using a
constant type for expected erase value.

BUG=chrome-os-partner:24916
BRANCH=baytrail
TEST=Booted after chromeos-firmwareupdate. Noted that MRC
     cache doesn't think the erased region isn't erased.

Change-Id: If95425fe26da050acb25f52bea060e288ad3633c
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/182154
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/5044
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2014-05-15 05:05:21 +02:00
..
arch SeaBIOS: Fix cpp use 2014-05-11 08:51:54 +02:00
console console: Fix UART selection prompt 2014-04-30 23:47:28 +02:00
cpu cpu/intel: Add CPU socket rPGA988B 2014-05-13 21:58:16 +02:00
device Introduce stage-specific architecture for coreboot 2014-05-06 20:23:31 +02:00
drivers src/drivers/pc80: Remove empty struct keyboard 2014-05-13 10:03:51 +02:00
ec chromeec: add function to reboot on unexpected image 2014-05-13 21:01:52 +02:00
include intel: Drop obsolete comments on MTRR usage 2014-05-14 07:30:20 +02:00
lib baytrail: snapshot power state in romstage 2014-05-13 16:11:04 +02:00
mainboard rambi: disable SERIRQ native functionality 2014-05-15 05:05:00 +02:00
northbridge intel: Drop obsolete comments on MTRR usage 2014-05-14 07:30:20 +02:00
soc baytrail: nvm: use proper types for checking erase 2014-05-15 05:05:21 +02:00
southbridge southbridge/amd/cimx/sb800: Unused func smbus_delay() 2014-05-14 21:48:27 +02:00
superio src/*: Remove the last remnants of struct keyboard 2014-05-13 12:14:34 +02:00
vendorcode Declare get_write_protect_state() without ChromeOS 2014-05-08 16:25:30 +02:00
Kconfig Arch-level Kconfig menu cleanup 2014-05-10 14:32:26 +02:00