[U-Boot] [PATCH 1/4] ARM: define MON_MODE

Stephen Warren swarren at wwwdotorg.org
Fri Jun 22 19:03:16 UTC 2018


From: Stephen Warren <swarren at nvidia.com>

Add a MON_MODE define for ARM's monitor mode. This can be used later by
a secure monitor to avoid hard-coding mode IDs.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 arch/arm/include/asm/proc-armv/ptrace.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/include/asm/proc-armv/ptrace.h b/arch/arm/include/asm/proc-armv/ptrace.h
index 71df5a9e2538..183b00a08719 100644
--- a/arch/arm/include/asm/proc-armv/ptrace.h
+++ b/arch/arm/include/asm/proc-armv/ptrace.h
@@ -37,6 +37,7 @@ struct pt_regs {
 #define FIQ_MODE	0x11
 #define IRQ_MODE	0x12
 #define SVC_MODE	0x13
+#define MON_MODE	0x16
 #define ABT_MODE	0x17
 #define HYP_MODE	0x1a
 #define UND_MODE	0x1b
-- 
2.17.1



More information about the U-Boot mailing list