Make this work with coldfire.
This commit is contained in:
parent
89e28d04a5
commit
2e6bec6f0d
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: umodsi3.S,v 1.4 2013/07/16 23:24:18 matt Exp $ */
|
/* $NetBSD: umodsi3.S,v 1.5 2014/03/04 06:15:33 matt Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990 The Regents of the University of California.
|
* Copyright (c) 1990 The Regents of the University of California.
|
||||||
@ -39,7 +39,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
RCSID("from: @(#)umodsi3.s 5.1 (Berkeley) 6/7/90")(
|
RCSID("from: @(#)umodsi3.s 5.1 (Berkeley) 6/7/90")(
|
||||||
#else
|
#else
|
||||||
RCSID("$NetBSD: umodsi3.S,v 1.4 2013/07/16 23:24:18 matt Exp $")
|
RCSID("$NetBSD: umodsi3.S,v 1.5 2014/03/04 06:15:33 matt Exp $")
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -47,7 +47,12 @@
|
|||||||
#ifndef __mc68010__
|
#ifndef __mc68010__
|
||||||
ENTRY(__umodsi3)
|
ENTRY(__umodsi3)
|
||||||
movel 4(%sp),%d1
|
movel 4(%sp),%d1
|
||||||
|
#ifdef __mcoldfire__
|
||||||
|
remul 8(%sp),%d0:%d1
|
||||||
|
divul 8(%sp),%d1
|
||||||
|
#else
|
||||||
divull 8(%sp),%d0:%d1
|
divull 8(%sp),%d0:%d1
|
||||||
|
#endif
|
||||||
rts
|
rts
|
||||||
END(__umodsi3)
|
END(__umodsi3)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user