From d3e108f463eeea4c821f1e308d145a5940e5df45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Fri, 28 Mar 2025 12:37:44 +0100 Subject: [PATCH] testapp: Fix illegal TK1_SYSCALL_RESET call --- hw/application_fpga/fw/testapp/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/application_fpga/fw/testapp/main.c b/hw/application_fpga/fw/testapp/main.c index a09ffa2..fd33f0b 100644 --- a/hw/application_fpga/fw/testapp/main.c +++ b/hw/application_fpga/fw/testapp/main.c @@ -11,6 +11,7 @@ #include #include "../tk1/proto.h" +#include "../tk1/resetinfo.h" #include "../tk1/syscall_num.h" #include "syscall.h" @@ -258,7 +259,10 @@ int main(void) } if (in == '+') { - syscall(TK1_SYSCALL_RESET, 0, 0, 0); + struct reset rst; + memset(&rst, 0, sizeof(rst)); + rst.type = START_DEFAULT; + syscall(TK1_SYSCALL_RESET, (uint32_t)&rst, 0, 0); } write(IO_CDC, &in, 1);