[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] FreeMiNT for ColdFire : xconout2.xdd
Here is the ColdFire patch for xconcout2.xdd.
In order to build it:
cd sys/xdd/xconout2
make CPU=v4e
Alan, please commit!
Added ColdFire support. Contributed by Vincent Riviere.
--
Vincent Rivière
--- freemint.orig/sys/xdd/xconout2/xconout2.c 2004-03-30 22:02:43.000000000 +0200
+++ freemint/sys/xdd/xconout2/xconout2.c 2011-05-24 01:30:49.984375000 +0200
@@ -235,12 +235,12 @@
__asm__ volatile
(
- "moveml d0-d7/a0-a6,sp@-;"
- "movl %1,sp@-;"
- "movl _oldxconout2, a0;"
- "jbsr a0@;"
- "addqw #4,sp;"
- "moveml sp@+,d0-d7/a0-a6;"
+ PUSH_SP("d0-d7/a0-a6", 60)
+ "movl %1,sp@-\n\t"
+ "movl _oldxconout2,a0\n\t"
+ "jbsr a0@\n\t"
+ "addql #4,sp\n\t"
+ POP_SP("d0-d7/a0-a6", 60)
: "=r" (r) /* outputs */
: "g" (c) /* inputs */
);