summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/coldfire/system-target.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/coldfire/system-target.h b/firmware/target/coldfire/system-target.h
index 3fbd24cbe4..40542353be 100644
--- a/firmware/target/coldfire/system-target.h
+++ b/firmware/target/coldfire/system-target.h
@@ -40,6 +40,13 @@
: /* %0 */ "d"(mask), \
/* %1 */ "a"(address))
+#define add_l(addend, address) \
+ asm \
+ ("add.l %0, (%1)" \
+ : \
+ : /* %0 */ "r"(addend), \
+ /* %1 */ "a"(address))
+
#define EMAC_ROUND 0x10
#define EMAC_FRACTIONAL 0x20
#define EMAC_SATURATE 0x80