diff options
author | Nicolas Norvez <norvez@chromium.org> | 2019-04-18 12:44:14 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-19 14:45:24 -0700 |
commit | 16b6098577e6f986b89ac8ae668f022d6a9cb883 (patch) | |
tree | 5c38680c8d041c126658f20f470e02193aa2df8b /board | |
parent | f273993d7ef33e20390d947387d5e9df8deaa507 (diff) | |
download | chrome-ec-16b6098577e6f986b89ac8ae668f022d6a9cb883.tar.gz |
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 <norvez@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1574658
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/hatch_fp/board.h | 10 |
1 files 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 */ |