aboutsummaryrefslogtreecommitdiff
path: root/armv7m.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-24 14:09:00 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-02-24 14:09:00 +0000
commit3f4e9a6995d3646319e3f34e0e1d458d60ebbc7a (patch)
tree322d2ed82e9af431e7ed6266d7d23a0dba0b5c8d /armv7m.h
parent38272df2f64313059253c0d96f4044e08054f038 (diff)
Don't check ICSR.RETTOBASE outside an exception handler
The ICSR.RETTOBASE bit value is UNKNOWN when not inside an exception handler, so don't try to test it in that situation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'armv7m.h')
-rw-r--r--armv7m.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/armv7m.h b/armv7m.h
index 3d1c1ae..36955f8 100644
--- a/armv7m.h
+++ b/armv7m.h
@@ -31,6 +31,7 @@
#define PRIGROUP_BITS 3
#define PRIO_MASK (((1<<3)-1)<<(8-PRIGROUP_BITS))
+#define ICSR_RETTOBASE (1 << 11)
typedef void (*vectfn)(void);