Remove float-point dependency from i386's version of setjmp()/longjmp().

This commit is contained in:
Daniel C. Sobral 1999-02-12 17:22:30 +00:00
parent 64b0ea0c05
commit 8871c529f8

View File

@ -33,12 +33,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: _setjmp.S,v 1.7 1998/04/29 09:14:35 jb Exp $ * $Id: _setjmp.S,v 1.1 1999/02/12 17:20:19 dcs Exp $
*/ */
#if defined(LIBC_RCS) && !defined(lint) #if defined(LIBC_RCS) && !defined(lint)
.text .text
.asciz "$Id: _setjmp.S,v 1.7 1998/04/29 09:14:35 jb Exp $" .asciz "$Id: _setjmp.S,v 1.1 1999/02/12 17:20:19 dcs Exp $"
#endif /* LIBC_RCS and not lint */ #endif /* LIBC_RCS and not lint */
/* /*
@ -62,7 +62,6 @@ ENTRY(_setjmp)
movl %ebp,12(%eax) movl %ebp,12(%eax)
movl %esi,16(%eax) movl %esi,16(%eax)
movl %edi,20(%eax) movl %edi,20(%eax)
fnstcw 28(%eax)
xorl %eax,%eax xorl %eax,%eax
ret ret
@ -75,8 +74,6 @@ ENTRY(_longjmp)
movl 12(%edx),%ebp movl 12(%edx),%ebp
movl 16(%edx),%esi movl 16(%edx),%esi
movl 20(%edx),%edi movl 20(%edx),%edi
fninit
fldcw 28(%edx)
testl %eax,%eax testl %eax,%eax
jnz 1f jnz 1f
incl %eax incl %eax