From 44dc84d3696795fbe0b6f1786cabaa08fd88ade6 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Sat, 12 Jan 2019 18:20:10 -0500 Subject: Timing tests for RSA signing and sub-components thereof. This is not the sort of thing that should go anywhere near production code, so it's on a dangling branch. I may rebase it from time to time. --- projects/hsm/hsm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'projects/hsm/hsm.c') diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c index 29509e8..8075ed6 100644 --- a/projects/hsm/hsm.c +++ b/projects/hsm/hsm.c @@ -86,9 +86,8 @@ static uint8_t busy_stack[BUSY_STACK_SIZE]; * 4096-byte block of an FPGA or bootloader image upload. */ #ifndef CLI_STACK_SIZE -#define CLI_STACK_SIZE 8*1024 +#define CLI_STACK_SIZE 200*1024 #endif -static uint8_t cli_stack[CLI_STACK_SIZE]; /* RPC buffers. For each active request, there will be two - input and output. */ @@ -501,7 +500,10 @@ int main(void) */ /* Create the CLI task. */ - if (task_add("cli", (funcp_t)cli_main, NULL, cli_stack, sizeof(cli_stack)) == NULL) + void *cli_stack = (void *)sdram_malloc(CLI_STACK_SIZE); + if (cli_stack == NULL) + Error_Handler(); + if (task_add("cli", (funcp_t)cli_main, NULL, cli_stack, CLI_STACK_SIZE) == NULL) Error_Handler(); /* Start the tasker */ -- cgit v1.2.3