diff options
author | dg <dg@FreeBSD.org> | 1996-02-02 18:30:06 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-02-02 18:30:06 +0000 |
commit | ee3d1204063d6d843bc54f04e8fbda962f89c9ca (patch) | |
tree | 5e35f32a552ae9a9fd71959d57eccc68f0c06f2f /sys | |
parent | 3c9b360579762f79e4602e4ac6435c8eae493cd4 (diff) | |
download | FreeBSD-src-ee3d1204063d6d843bc54f04e8fbda962f89c9ca.zip FreeBSD-src-ee3d1204063d6d843bc54f04e8fbda962f89c9ca.tar.gz |
Killed last change - it was bogus. cpu_switch() already assumes that
return address is on the stack.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 5 | ||||
-rw-r--r-- | sys/amd64/amd64/swtch.s | 5 | ||||
-rw-r--r-- | sys/i386/i386/swtch.s | 5 |
3 files changed, 6 insertions, 9 deletions
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) |