[Cryptech-Commits] [sw/stm32] 03/05: Reset table of cores after resetting FPGA from CLI.
git at cryptech.is
git at cryptech.is
Tue Aug 23 16:37:07 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 99c0a0a3b7e2b9f3222e93190564724e6177a6f2
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Aug 23 11:02:49 2016 -0400
Reset table of cores after resetting FPGA from CLI.
---
projects/hsm/mgmt-fpga.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/projects/hsm/mgmt-fpga.c b/projects/hsm/mgmt-fpga.c
index 778ded9..d76315e 100644
--- a/projects/hsm/mgmt-fpga.c
+++ b/projects/hsm/mgmt-fpga.c
@@ -119,6 +119,7 @@ static int cmd_fpga_reset(struct cli_def *cli, const char *command, char *argv[]
{
fpgacfg_access_control(ALLOW_FPGA);
fpgacfg_reset_fpga(RESET_FULL);
+ hal_core_reset_table();
cli_print(cli, "FPGA has been reset");
return CLI_OK;
@@ -126,7 +127,7 @@ static int cmd_fpga_reset(struct cli_def *cli, const char *command, char *argv[]
static int cmd_fpga_show_cores(struct cli_def *cli, const char *command, char *argv[], int argc)
{
- const hal_core_t *core;
+ hal_core_t *core;
const hal_core_info_t *info;
if (! fpgacfg_check_done()) {
More information about the Commits
mailing list