summaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index 5c83ec69..f8fea1a1 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -51,6 +51,16 @@
#define ARM11_TAP_DEFAULT TAP_INVALID
+#define CHECK_RETVAL(action) \
+do { \
+ int __retval = (action); \
+ \
+ if (__retval != ERROR_OK) \
+ return __retval; \
+ \
+} while (0)
+
+
typedef struct arm11_register_history_s
{
u32 value;