From 3c391ad51b24383cb75f171355ca42a66b6b2bc9 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 26 Apr 2012 15:59:48 -0400 Subject: [PATCH] Coldfire (m68k): Add macros for tpf.w/l instructions. Better than inserting ".word 0x51fc/b". Assembler doesn't support them but does the plain "tpf" without extension words as well as "trapf". Change-Id: I929c0ec84c6e76e0573ff6308634542fd8aee738 --- firmware/export/config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/firmware/export/config.h b/firmware/export/config.h index 254128c844..d85cf1e784 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -867,6 +867,17 @@ Lyre prototype 1 */ .endm #endif +#if defined(CPU_COLDFIRE) && defined(__ASSEMBLER__) +/* Assembler doesn't support these as mnemonics but does tpf */ +.macro tpf.w +.word 0x51fa +.endm + +.macro tpf.l +.word 0x51fb +.endm +#endif + #ifndef CODEC_SIZE #define CODEC_SIZE 0 #endif