[Cryptech-Commits] [sw/stm32] 01/02: probe_cores() finally does the right thing, so we don't have to call it early.

git at cryptech.is git at cryptech.is
Wed Jul 13 04:50:59 UTC 2016


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

paul at psgd.org pushed a commit to branch master
in repository sw/stm32.

commit e659370119c43e412c4a19b4dd99b80521a02d2b
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Wed Jul 13 00:17:39 2016 -0400

    probe_cores() finally does the right thing, so we don't have to call it early.
---
 projects/hsm/hsm.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index 3186bc5..adce889 100644
--- a/projects/hsm/hsm.c
+++ b/projects/hsm/hsm.c
@@ -241,13 +241,6 @@ int main()
     fmc_init();
     sdram_init();
 
-    /* Haaaack. probe_cores() calls malloc(), which works from the main
-     * thread, but not from a spawned thread. It would be better to
-     * rewrite it to use static memory, but for now, just force it to
-     * probe early.
-     */
-    hal_core_iterate(NULL);
-
 #if NUM_RPC_TASK > 1
     if ((uart_mutex = osMutexCreate(osMutex(uart_mutex))) == NULL ||
         (dispatch_mutex = osMutexCreate(osMutex(dispatch_mutex)) == NULL)



More information about the Commits mailing list