From 121d991857bed3c85d3ba0f0f3d2fefffdf56d5b Mon Sep 17 00:00:00 2001 From: Daniel Jobson Date: Tue, 17 Sep 2024 14:54:57 +0200 Subject: [PATCH] Temporarily override the blake2s trampoline --- hw/application_fpga/fw/tk1/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/application_fpga/fw/tk1/main.c b/hw/application_fpga/fw/tk1/main.c index 0a3e778..e71ddaf 100644 --- a/hw/application_fpga/fw/tk1/main.c +++ b/hw/application_fpga/fw/tk1/main.c @@ -14,6 +14,7 @@ #include "proto.h" #include "rng.h" #include "state.h" +#include "syscall.h" #include #include @@ -419,7 +420,8 @@ int main(void) print_hw_version(); // Let the app know the function address for blake2s() - *fw_blake2s_addr = (uint32_t)blake2s; + *fw_blake2s_addr = (uint32_t)syscall; + /**fw_blake2s_addr = (uint32_t)blake2s;*/ /*@-mustfreeonly@*/ /* Yes, splint, this points directly to RAM and we don't care