[Cryptech-Commits] [sw/stm32] 02/02: Stub out hal_allocate_static_memory() to avoid linker error.

git at cryptech.is git at cryptech.is
Sun May 28 22:52:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch ks9
in repository sw/stm32.

commit a93c94f554667564393216fe984b46e686c825b3
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sun May 28 17:57:35 2017 -0400

    Stub out hal_allocate_static_memory() to avoid linker error.
    
    This is a quick fix, so that we can get on with testing the ks9 branch
    changes.
    
    A better fix in the long run might be to add a third keystore
    ("ks_pin_read_only", or some such) which implemented the bare minimum
    interface that the bootloader needs and left everything else
    unimplemented.  This would require a bit of refactoring the current
    PIN code to make it work right with both the bootloader's abbreivated
    keystore and the normal token keystore.  Probably worth doing, but a
    bit of a can of worms, so postponing for now.
---
 projects/bootloader/bootloader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/projects/bootloader/bootloader.c b/projects/bootloader/bootloader.c
index c0f981f..ead87d0 100644
--- a/projects/bootloader/bootloader.c
+++ b/projects/bootloader/bootloader.c
@@ -41,6 +41,7 @@
 /* stub these out to avoid linker error */
 void fpgacfg_init(void) { }
 void sdram_init(void) { }
+void *hal_allocate_static_memory(const size_t size) { return 0; }
 
 /* Linker symbols are strange in C. Make regular pointers for sanity. */
 __IO uint32_t *dfu_control = &CRYPTECH_DFU_CONTROL;



More information about the Commits mailing list