From 04a257310b6bcdd159e99c10b86136e05e8c0694 Mon Sep 17 00:00:00 2001 From: Enrico Zelioli Date: Tue, 3 Dec 2024 18:45:58 +0100 Subject: [PATCH] Extend ZSL for SMP --- sw/boot/zsl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sw/boot/zsl.c b/sw/boot/zsl.c index ab2edb655..53188729e 100644 --- a/sw/boot/zsl.c +++ b/sw/boot/zsl.c @@ -14,6 +14,7 @@ #include "gpt.h" #include "dif/uart.h" #include "printf.h" +#include "smp.h" // Type for firmware payload typedef int (*payload_t)(uint64_t, uint64_t, uint64_t); @@ -81,8 +82,9 @@ int main(void) { } // Launch payload - payload_t fw = __BOOT_ZSL_FW; printf("[ZSL] Launch firmware at %lx with device tree at %lx\r\n", fw, __BOOT_ZSL_DTB); + smp_resume(); + payload_t fw = __BOOT_ZSL_FW; fencei(); return fw(0, (uintptr_t)__BOOT_ZSL_DTB, 0); }