diff options
| author | matt <matt@NetBSD.org> | 2014-03-04 04:03:49 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2014-03-04 04:03:49 +0000 |
| commit | 8b3a8c62cbb40c97ea2e2de7d40639a29bc8df80 (patch) | |
| tree | ed51a23ac350b074728742c573ded2edf5953133 | |
| parent | 55dd1e406170d373eb5e51d2bf92654f94c89e1c (diff) | |
Make this coldfire compatible
| -rw-r--r-- | common/lib/libc/arch/m68k/gen/modsi3.S | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/lib/libc/arch/m68k/gen/modsi3.S b/common/lib/libc/arch/m68k/gen/modsi3.S index 4a6cb58fd2b..bff62d66a16 100644 --- a/common/lib/libc/arch/m68k/gen/modsi3.S +++ b/common/lib/libc/arch/m68k/gen/modsi3.S @@ -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 |
