coreboot/src/commonlib
Jonathan Neuschäfer a87feb061b UPSTREAM: commonlib/lz4: Avoid unaligned memory access on RISC-V
From the User-Level ISA Specification v2.0:

   "We do not mandate atomicity for misaligned accesses so simple
    implementations can just use a machine trap and software handler to
    handle misaligned accesses." ( http://riscv.org/specifications/)

Spike traps on unaligned accesses.

Change-Id: Ia57786916f4076cc08513f4e331c2deec9cfa785
Original-Signed-off-by: Jonathan Neuschfer <j.neuschaefer@gmx.net>
Original-Reviewed-on: https://review.coreboot.org/14983
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
(cherry-picked from commit 4acb0e7742)
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/348411
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
2016-06-01 20:37:00 -07:00
..
include/commonlib cbfstool/fsp: Rename fsp1_1_relocate 2016-05-11 18:38:28 +02:00
cbfs.c commonlib: Add function to hash contents of a CBFS region. 2016-01-06 01:12:04 +01:00
fsp_relocate.c cbfstool/fsp: Rename fsp1_1_relocate 2016-05-11 18:38:28 +02:00
lz4.c.inc cbfs: Add LZ4 in-place decompression support for pre-RAM stages 2016-02-22 21:38:37 +01:00
lz4_wrapper.c UPSTREAM: commonlib/lz4: Avoid unaligned memory access on RISC-V 2016-06-01 20:37:00 -07:00
Makefile.inc cbfstool/fsp: Rename fsp1_1_relocate 2016-05-11 18:38:28 +02:00
mem_pool.c commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
region.c commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00