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 <Ioannis.Glaropoulos@nordicsemi.no> Date: Mon Mar 12 10:45:02 2018 +0100 arch: arm: remove redundant asm inline headers Fixes #246. Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
parent
d9d28a78d4
commit
57837b98e6
|
@ -19,7 +19,6 @@
|
||||||
#include <gpio.h>
|
#include <gpio.h>
|
||||||
#include <misc/__assert.h>
|
#include <misc/__assert.h>
|
||||||
#include <flash.h>
|
#include <flash.h>
|
||||||
#include <asm_inline.h>
|
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
|
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
|
@ -65,7 +64,7 @@ static void do_boot(struct boot_rsp *rsp)
|
||||||
rsp->br_hdr->ih_hdr_size);
|
rsp->br_hdr->ih_hdr_size);
|
||||||
irq_lock();
|
irq_lock();
|
||||||
sys_clock_disable();
|
sys_clock_disable();
|
||||||
_MspSet(vt->msp);
|
__set_MSP(vt->msp);
|
||||||
((void (*)(void))vt->reset)();
|
((void (*)(void))vt->reset)();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue