Use an identical source file for the libc and the libkern version of
divsi3.S, conditionally compiling the divide by zero case. This way, after a change to the one, we can just copy it over to update the other without creating ... problems. By Chris G. Demetriou.
This commit is contained in:
parent
125d7ba1cb
commit
897dbf6c67
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: divsi3.S,v 1.3 1999/09/16 09:15:05 is Exp $ */
|
||||
/* $NetBSD: divsi3.S,v 1.4 1999/09/20 09:22:47 is Exp $ */
|
||||
|
||||
/*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
|
@ -29,9 +29,14 @@ ENTRY(__modsi3)
|
|||
ldmfd sp!, {pc}
|
||||
|
||||
L_overflow:
|
||||
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||
mov r0, #8 /* SIGFPE */
|
||||
bl _raise /* raise it */
|
||||
mov r0, #0
|
||||
#else
|
||||
/* XXX should cause a fatal error */
|
||||
mvn r0, #0
|
||||
#endif
|
||||
mov pc, lr
|
||||
|
||||
ENTRY(__udivsi3)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: divsi3.S,v 1.4 1999/09/19 15:58:02 is Exp $ */
|
||||
/* $NetBSD: divsi3.S,v 1.5 1999/09/20 09:22:48 is Exp $ */
|
||||
|
||||
/*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
|
@ -29,7 +29,14 @@ ENTRY(__modsi3)
|
|||
ldmfd sp!, {pc}
|
||||
|
||||
L_overflow:
|
||||
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||
mov r0, #8 /* SIGFPE */
|
||||
bl _raise /* raise it */
|
||||
mov r0, #0
|
||||
#else
|
||||
/* XXX should cause a fatal error */
|
||||
mvn r0, #0
|
||||
#endif
|
||||
mov pc, lr
|
||||
|
||||
ENTRY(__udivsi3)
|
||||
|
|
Loading…
Reference in New Issue