From 2dc81c98924db865be038476ecc8ce92c186efa7 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 23 Sep 2016 01:00:25 -0400 Subject: Use subsectors instead of sectors in keystore. --- projects/hsm/hsm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'projects/hsm/hsm.c') diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c index 862e718..ac0f23a 100644 --- a/projects/hsm/hsm.c +++ b/projects/hsm/hsm.c @@ -217,6 +217,14 @@ static uint8_t *sdram_malloc(size_t size) return p; } +/* Implement static memory allocation for libhal over sdram_malloc(). + * Once again, there's only alloc, not free. */ + +void *hal_allocate_static_memory(const size_t size) +{ + return sdram_malloc(size); +} + #if NUM_RPC_TASK > 1 /* Critical section start/end, currently used just for hal_core_alloc/_free. */ -- cgit v1.2.3