From d99127771c0e061a029de88eaefb255ff9b62e2d Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Mon, 25 Jan 2021 13:19:57 +0100 Subject: [PATCH] chore(core): reorder includes --- core/embed/firmware/systemview.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/embed/firmware/systemview.c b/core/embed/firmware/systemview.c index 1b5635b520..ba9e6db114 100644 --- a/core/embed/firmware/systemview.c +++ b/core/embed/firmware/systemview.c @@ -4,7 +4,9 @@ #include #include #include +#include "irq.h" #include "mpconfigport.h" +#include "supervise.h" #include "SEGGER_SYSVIEW.h" #include "SEGGER_SYSVIEW_Conf.h" @@ -50,12 +52,6 @@ typedef struct { extern uint32_t SystemCoreClock; -static inline uint32_t is_mode_unprivileged(void) { - uint32_t r0; - __asm__ volatile("mrs %0, control" : "=r"(r0)); - return r0 & 1; -} - uint32_t svc_get_dwt_cyccnt() { if (is_mode_unprivileged()) { __asm__ __volatile__("svc %0" ::"i"(SVC_GET_DWT_CYCCNT));