Module Name: src
Committed By: matt
Date: Tue Mar 4 04:03:49 UTC 2014
Modified Files:
src/common/lib/libc/arch/m68k/gen: modsi3.S
Log Message:
Make this coldfire compatible
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/common/lib/libc/arch/m68k/gen/modsi3.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/arch/m68k/gen/modsi3.S
diff -u src/common/lib/libc/arch/m68k/gen/modsi3.S:1.6 src/common/lib/libc/arch/m68k/gen/modsi3.S:1.7
--- src/common/lib/libc/arch/m68k/gen/modsi3.S:1.6 Sat Sep 7 19:06:29 2013
+++ src/common/lib/libc/arch/m68k/gen/modsi3.S Tue Mar 4 04:03:49 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: modsi3.S,v 1.6 2013/09/07 19:06:29 chs Exp $ */
+/* $NetBSD: modsi3.S,v 1.7 2014/03/04 04:03:49 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,7 +39,7 @@
#if 0
RCSID("from: @(#)modsi3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: modsi3.S,v 1.6 2013/09/07 19:06:29 chs Exp $")
+ RCSID("$NetBSD: modsi3.S,v 1.7 2014/03/04 04:03:49 matt Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -47,7 +47,12 @@
#ifndef __mc68010__
ENTRY(__modsi3)
movel 4(%sp),%d1
+#ifdef __mcoldfire__
+ remsl 8(%sp),%d0:%d1
+ divsl 8(%sp),%d1
+#else
divsll 8(%sp),%d0:%d1
+#endif
rts
END(__modsi3)
#else