[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] FreeMiNT for ColdFire



Jo Even Skarstein wrote:
Unfortunately I get a bus error as soon as the mouse is moved (GEM=ROM)
when the AKP keyboard is enabled.

Oops... The ColdFire has limitations with the cmp instruction, sometimes the operands have to be reversed. But in that case, the branch condition has to be negated, too.

Fixed !

Alan, please commit!

- acia.patch
Fixed crash on ColdFire when moving the mouse. Contributed by Vincent Riviere.

Also, I have removed all my accessories, now GEM=ROM works for me :-)

--
Vincent Rivière
--- freemint.orig/sys/arch/acia.S	2011-03-21 20:13:53.109375000 +0100
+++ freemint/sys/arch/acia.S	2011-03-21 20:53:29.947251500 +0100
@@ -170,10 +170,11 @@
 #ifdef __mcoldfire__
 	moveq.l	#0x06,d1
 	cmp.b	IKBDSTATE(a3),d1
+	bcc.s	nostk
 #else
 	cmp.b	#0x06,IKBDSTATE(a3)
-#endif
 	bcs.s	nostk
+#endif
 
 	clr.l	d1
 	move.b	IKBDSTATE(a3),d1