From 57837b98e6d5b026b475a861d6416c62c3df973e Mon Sep 17 00:00:00 2001 From: David Brown Date: Tue, 13 Mar 2018 15:56:38 -0600 Subject: [PATCH] zephyr: arm: Use proper macro to set MSP The macro _MspSet has gone away in Zephyr. Change to use the __set_MSP macro from the CMSIS code that has always been present. This allows mcuboot to build with Zephyr after: commit c028f88b37d2a033d6a85c8d365ef048e1e4d621 Author: Ioannis Glaropoulos Date: Mon Mar 12 10:45:02 2018 +0100 arch: arm: remove redundant asm inline headers Fixes #246. Signed-off-by: David Brown --- boot/zephyr/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 1159e344..1f80dac3 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include "target.h" @@ -65,7 +64,7 @@ static void do_boot(struct boot_rsp *rsp) rsp->br_hdr->ih_hdr_size); irq_lock(); sys_clock_disable(); - _MspSet(vt->msp); + __set_MSP(vt->msp); ((void (*)(void))vt->reset)(); } #else