[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] [PATCH] XaAES trap_14_w and ColdFire
Hello.
I noticed that there was trap_14_w() macro in XaAES' global.h, and that one
is not compatible with ColdFire. Currently this does not cause trouble
because it is unused, but it is worth to fix it now to avoid future problems.
trap.patch
Fixed trap_14_w() for ColdFire. Contributed by Vincent Riviere.
Please commit!
--
Vincent Rivière
diff -x CVS -aurN freemint.orig/xaaes/src.km/global.h freemint/xaaes/src.km/global.h
--- freemint.orig/xaaes/src.km/global.h 2012-09-21 18:42:17.500000000 +0200
+++ freemint/xaaes/src.km/global.h 2012-11-18 22:29:30.375000000 +0100
@@ -135,7 +135,7 @@
("\
movw %1,sp@-; \
trap #14; \
- addqw #2,sp " \
+ addql #2,sp " \
: "=r"(retvalue) /* outputs */ \
: "g"(n) /* inputs */ \
: __CLOBBER_RETURN("d0") \