mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 15:28:50 +00:00
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>
This commit is contained in:
parent
07cbae7672
commit
bbddbef998
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
#define _AVB_VERIFY_H
|
#define _AVB_VERIFY_H
|
||||||
|
|
||||||
#include <../lib/libavb/libavb.h>
|
#include <../lib/libavb/libavb.h>
|
||||||
|
#include <mapmem.h>
|
||||||
#include <mmc.h>
|
#include <mmc.h>
|
||||||
|
|
||||||
#define AVB_MAX_ARGS 1024
|
#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)
|
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)
|
static inline bool is_buf_unaligned(void *buffer)
|
||||||
|
|
Loading…
Add table
Reference in a new issue