[Cryptech-Commits] [sw/stm32] branch master updated: Increase cli task, and move it to SDRAM, because main RAM is getting full.
git at cryptech.is
git at cryptech.is
Wed Nov 14 22:12:06 UTC 2018
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.
The following commit(s) were added to refs/heads/master by this push:
new 2385031 Increase cli task, and move it to SDRAM, because main RAM is getting full.
2385031 is described below
commit 23850319664533c42c5c60d1e91277358d07dd63
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Wed Nov 14 16:41:31 2018 -0500
Increase cli task, and move it to SDRAM, because main RAM is getting full.
---
projects/hsm/hsm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index 29509e8..a34b1f7 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 16*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,8 @@ 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 (task_add("cli", (funcp_t)cli_main, NULL, cli_stack, CLI_STACK_SIZE) == NULL)
Error_Handler();
/* Start the tasker */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list