From ee3d1204063d6d843bc54f04e8fbda962f89c9ca Mon Sep 17 00:00:00 2001 From: dg Date: Fri, 2 Feb 1996 18:30:06 +0000 Subject: Killed last change - it was bogus. cpu_switch() already assumes that return address is on the stack. --- sys/amd64/amd64/cpu_switch.S | 5 ++--- sys/amd64/amd64/swtch.s | 5 ++--- sys/i386/i386/swtch.s | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'sys') diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index a07a559..e7006cf 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.26 1996/01/23 02:39:16 davidg Exp $ + * $Id: swtch.s,v 1.27 1996/01/30 12:54:15 davidg Exp $ */ #include "npx.h" /* for NNPX */ @@ -519,8 +519,7 @@ ENTRY(savectx) movl $1,PCB_EAX(%ecx) /* return 1 in child */ movl %ebx,PCB_EBX(%ecx) - leal 4(%esp),%eax /* stack minus return address */ - movl %eax,PCB_ESP(%ecx) + movl %esp,PCB_ESP(%ecx) movl %ebp,PCB_EBP(%ecx) movl %esi,PCB_ESI(%ecx) movl %edi,PCB_EDI(%ecx) diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index a07a559..e7006cf 100644 --- a/sys/amd64/amd64/swtch.s +++ b/sys/amd64/amd64/swtch.s @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.26 1996/01/23 02:39:16 davidg Exp $ + * $Id: swtch.s,v 1.27 1996/01/30 12:54:15 davidg Exp $ */ #include "npx.h" /* for NNPX */ @@ -519,8 +519,7 @@ ENTRY(savectx) movl $1,PCB_EAX(%ecx) /* return 1 in child */ movl %ebx,PCB_EBX(%ecx) - leal 4(%esp),%eax /* stack minus return address */ - movl %eax,PCB_ESP(%ecx) + movl %esp,PCB_ESP(%ecx) movl %ebp,PCB_EBP(%ecx) movl %esi,PCB_ESI(%ecx) movl %edi,PCB_EDI(%ecx) diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index a07a559..e7006cf 100644 --- a/sys/i386/i386/swtch.s +++ b/sys/i386/i386/swtch.s @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.26 1996/01/23 02:39:16 davidg Exp $ + * $Id: swtch.s,v 1.27 1996/01/30 12:54:15 davidg Exp $ */ #include "npx.h" /* for NNPX */ @@ -519,8 +519,7 @@ ENTRY(savectx) movl $1,PCB_EAX(%ecx) /* return 1 in child */ movl %ebx,PCB_EBX(%ecx) - leal 4(%esp),%eax /* stack minus return address */ - movl %eax,PCB_ESP(%ecx) + movl %esp,PCB_ESP(%ecx) movl %ebp,PCB_EBP(%ecx) movl %esi,PCB_ESI(%ecx) movl %edi,PCB_EDI(%ecx) -- cgit v1.1