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>
#define _AVB_VERIFY_H
#include <../lib/libavb/libavb.h>
+#include <mapmem.h>
#include <mmc.h>
#define AVB_MAX_ARGS 1024
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)