Commit a5046693 authored by Piotr Mienkowski's avatar Piotr Mienkowski Committed by Andrzej Puzdrowski
Browse files

zephyr: arm_cleanup.c: use <.../cortex_m/cmsis.h>

Use <arch/arm/aarch32/cortex_m/cmsis.h> include instead of <zephyr.h> to
get access to Cortex-M CMSIS API. zephyr.h provides kernel API, does not
guarantee access to CPU internals.

Fixes: #699 "Building MCUBoot for Zephyr fails on multiple ARM boards"

Signed-off-by: default avatarPiotr Mienkowski <piotr.mienkowski@gmail.com>
parent 165e00e9
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/zephyr/arm_cleanup.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr.h>
#include <arch/arm/aarch32/cortex_m/cmsis.h>

void cleanup_arm_nvic(void) {
	/* Allow any pending interrupts to be recognized */