diff options
author | Aaron Durbin <adurbin@chromium.org> | 2019-01-31 09:40:26 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2019-02-01 14:53:19 +0000 |
commit | eb722282da73f6afbe44f486eae6e64b9e00c568 (patch) | |
tree | 2f1d2c7f885287012644912756a204577f0e7e27 /src | |
parent | 3f559d960c637f09f74bbe217c562498ca1a5311 (diff) | |
download | coreboot-eb722282da73f6afbe44f486eae6e64b9e00c568.tar.xz |
cbmem: use aligned_memcpy for reading cbmem address information
The coreboot table entry containing the memory entries can have
fields unnaturally aligned in memory. Therefore one needs to perform
an aligned_memcpy() so that it doesn't cause faults on certain
architectures that assume naturally aligned accesses.
BUG=chromium:925961
Change-Id: I28365b204962ac89d65d046076d862b6f9374c06
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/31181
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Manoj Gupta <manojgupta@google.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions