summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-02-02 18:30:06 +0000
committerdg <dg@FreeBSD.org>1996-02-02 18:30:06 +0000
commitee3d1204063d6d843bc54f04e8fbda962f89c9ca (patch)
tree5e35f32a552ae9a9fd71959d57eccc68f0c06f2f /sys/amd64
parent3c9b360579762f79e4602e4ac6435c8eae493cd4 (diff)
downloadFreeBSD-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/amd64')
-rw-r--r--sys/amd64/amd64/cpu_switch.S5
-rw-r--r--sys/amd64/amd64/swtch.s5
2 files changed, 4 insertions, 6 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)
OpenPOWER on IntegriCloud