diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2018-09-25 16:40:22 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-10-07 11:07:26 -0400 |
commit | bbddbef998b9bb37917c9340ac5280d06d224703 (patch) | |
tree | 3a3fb18b6591b60f7d05b4881b69d1eb02bcc00e /include/avb_verify.h | |
parent | 07cbae767293dcf07cfc76cd494b8045ef4a8d7e (diff) | |
download | u-boot-bbddbef998b9bb37917c9340ac5280d06d224703.tar.gz |
avb_verify: support sandbox configuration
Change get_sector_buf() to use map_sysmem() to get a pointer to the
CONFIG_FASTBOOT_BUF_ADDR in memory.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/avb_verify.h')
-rw-r--r-- | include/avb_verify.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/avb_verify.h b/include/avb_verify.h index a532a2331a..18278f829e 100644 --- a/include/avb_verify.h +++ b/include/avb_verify.h @@ -9,6 +9,7 @@ #define _AVB_VERIFY_H #include <../lib/libavb/libavb.h> +#include <mapmem.h> #include <mmc.h> #define AVB_MAX_ARGS 1024 @@ -76,7 +77,7 @@ static inline size_t get_sector_buf_size(void) static inline void *get_sector_buf(void) { - return (void *)CONFIG_FASTBOOT_BUF_ADDR; + return map_sysmem(CONFIG_FASTBOOT_BUF_ADDR, CONFIG_FASTBOOT_BUF_SIZE); } static inline bool is_buf_unaligned(void *buffer) |