aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-05-28 17:57:35 -0400
committerRob Austein <sra@hactrn.net>2017-05-28 17:57:35 -0400
commita93c94f554667564393216fe984b46e686c825b3 (patch)
treed21a051c44b68a186bce625c27fb63da997d0001 /projects
parenta57dda190d26721ab74ab4821f010811dd93cf5f (diff)
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.
Diffstat (limited to 'projects')
-rw-r--r--projects/bootloader/bootloader.c1
1 files changed, 1 insertions, 0 deletions
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;