Martin Roth has uploaded a new patch set (#2) to the change originally created by Simon Glass. ( https://review.coreboot.org/c/coreboot/+/40243 )
Change subject: fmap: Avoid unaligned access ......................................................................
fmap: Avoid unaligned access
The fmap header has unaligned fields in it. Some CPUs do not like this, and it is not very friendly to hide this sort of thing in innocuous code.
Fix it by copying the data into an aligned location first only for vboot_before_bootblock. Because verstage runs as a userspace application, we can't set up caching as would be the typical way to handle this.
BUG=b:153203967 TEST=See this output now in psp_verstage Getting SPI ROM info. FMAP: base = 0xff000000 size = 0x1000000 #areas = 29
Signed-off-by: Martin Roth martin@coreboot.org Signed-off-by: Simon Glass sjg@chromium.org Change-Id: I6ac83766616cb2107b75eba6995cd09b4fc90968 --- M src/lib/fmap.c 1 file changed, 21 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/43/40243/2