Fix stack pointer fixup of oucp (a relict from times when this

was implemented entirely different, and then bit rot commenced).
This commit is contained in:
kleink 2003-04-07 19:44:40 +00:00
parent 45c9543071
commit e77f46b397
1 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: swapcontext.S,v 1.3 2003/01/26 15:54:35 fvdl Exp $ */
/* $NetBSD: swapcontext.S,v 1.4 2003/04/07 19:44:40 kleink Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: swapcontext.S,v 1.3 2003/01/26 15:54:35 fvdl Exp $")
RCSID("$NetBSD: swapcontext.S,v 1.4 2003/04/07 19:44:40 kleink Exp $")
#endif /* LIBC_SCCS && !lint */
ENTRY(swapcontext)
@ -59,10 +59,8 @@ ENTRY(swapcontext)
movl %edx,(36 + 14 * 4)(%ecx) /* Adjust saved %eip ... */
#ifdef PIC
movl %ebx,(36 + 8 * 4)(%ecx) /* ... clobbered PIC reg ... */
leal 12(%esp),%edx
#else
leal 8(%esp),%edx
#endif
leal 4(%esp),%edx
movl %edx,(36 + 17 * 4)(%ecx) /* ... and %esp. */
/* Note: oucp->%eax has been cleared by getcontext(). */
movl 8(%esp),%ecx