From 16b6098577e6f986b89ac8ae668f022d6a9cb883 Mon Sep 17 00:00:00 2001 From: Nicolas Norvez Date: Thu, 18 Apr 2019 12:44:14 -0700 Subject: hatch_fp: fix memory mapping of FP buffers On STM32F412 the buffers are located in the regular SRAM, don't define a special section. BRANCH=None BUG=b:124773209 BUG=b:124996507 TEST=fpenroll+fpmatch Change-Id: I8659e4587973c4e30c891084691b28326346e1d7 Signed-off-by: Nicolas Norvez Reviewed-on: https://chromium-review.googlesource.com/1574658 Reviewed-by: Tom Hughes --- board/hatch_fp/board.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/board/hatch_fp/board.h b/board/hatch_fp/board.h index 166ee508be..93e1bc9360 100644 --- a/board/hatch_fp/board.h +++ b/board/hatch_fp/board.h @@ -124,9 +124,13 @@ * (shared_mem_init done too late). */ #define CONFIG_MALLOC -/* Special memory regions to store large arrays */ -#define FP_FRAME_SECTION __SECTION(ahb4) -#define FP_TEMPLATE_SECTION __SECTION(ahb) +/* + * FP buffers are allocated in regular SRAM on STM32F4. + * TODO(b/124773209): Instead of defining to empty, #undef once all CLs that + * depend on FP_*_SECTION have landed. Also rename the variables to CONFIG_*. + */ +#define FP_FRAME_SECTION +#define FP_TEMPLATE_SECTION #else /* SECTION_IS_RO */ /* RO verifies the RW partition signature */ -- cgit v1.2.1