diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1996-05-01 03:47:04 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1996-05-01 03:47:04 +0000 |
| commit | eabe0f9f57e25ae4b5b95b5a3b9c59c5ebd9a1f8 (patch) | |
| tree | e6e6bb44a5c06420d6e9059b17f5f3e77e10f110 | |
| parent | 3722e90e21d23f577e03caf0df982a0742d6a89d (diff) | |
Notes
| -rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 8 | ||||
| -rw-r--r-- | sys/amd64/amd64/swtch.s | 8 | ||||
| -rw-r--r-- | sys/amd64/include/pcb.h | 4 | ||||
| -rw-r--r-- | sys/i386/i386/swtch.s | 8 | ||||
| -rw-r--r-- | sys/i386/include/pcb.h | 4 |
5 files changed, 10 insertions, 22 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 8a20aa9e91a3..ee4be15967d2 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.33 1996/04/18 21:34:26 phk Exp $ + * $Id: swtch.s,v 1.34 1996/04/25 06:20:08 phk Exp $ */ #include "apm.h" @@ -461,7 +461,6 @@ swtch_com: 2: #endif - movl $0,%eax sti ret @@ -506,22 +505,19 @@ ENTRY(savectx) pushl %eax pushl %eax call _npxsave - popl %eax + addl $4,%esp popl %eax popl %ecx - pushl %ecx pushl $PCB_SAVEFPU_SIZE leal PCB_SAVEFPU(%ecx),%ecx pushl %ecx pushl %eax call _bcopy addl $12,%esp - popl %ecx #endif /* NNPX > 0 */ 1: - xorl %eax,%eax /* return 0 */ ret /* diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index 8a20aa9e91a3..ee4be15967d2 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.33 1996/04/18 21:34:26 phk Exp $ + * $Id: swtch.s,v 1.34 1996/04/25 06:20:08 phk Exp $ */ #include "apm.h" @@ -461,7 +461,6 @@ swtch_com: 2: #endif - movl $0,%eax sti ret @@ -506,22 +505,19 @@ ENTRY(savectx) pushl %eax pushl %eax call _npxsave - popl %eax + addl $4,%esp popl %eax popl %ecx - pushl %ecx pushl $PCB_SAVEFPU_SIZE leal PCB_SAVEFPU(%ecx),%ecx pushl %ecx pushl %eax call _bcopy addl $12,%esp - popl %ecx #endif /* NNPX > 0 */ 1: - xorl %eax,%eax /* return 0 */ ret /* diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index 519730fe15e6..fdcedcf8db55 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)pcb.h 5.10 (Berkeley) 5/12/91 - * $Id: pcb.h,v 1.13 1996/04/19 07:28:04 phk Exp $ + * $Id: pcb.h,v 1.14 1996/04/25 06:20:19 phk Exp $ */ #ifndef _I386_PCB_H_ @@ -79,7 +79,7 @@ struct md_coredump { #ifdef KERNEL extern struct pcb *curpcb; /* our current running pcb */ -int savectx __P((struct pcb*)); +void savectx __P((struct pcb*)); #endif #endif /* _I386_PCB_H_ */ diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index 8a20aa9e91a3..ee4be15967d2 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.33 1996/04/18 21:34:26 phk Exp $ + * $Id: swtch.s,v 1.34 1996/04/25 06:20:08 phk Exp $ */ #include "apm.h" @@ -461,7 +461,6 @@ swtch_com: 2: #endif - movl $0,%eax sti ret @@ -506,22 +505,19 @@ ENTRY(savectx) pushl %eax pushl %eax call _npxsave - popl %eax + addl $4,%esp popl %eax popl %ecx - pushl %ecx pushl $PCB_SAVEFPU_SIZE leal PCB_SAVEFPU(%ecx),%ecx pushl %ecx pushl %eax call _bcopy addl $12,%esp - popl %ecx #endif /* NNPX > 0 */ 1: - xorl %eax,%eax /* return 0 */ ret /* diff --git a/sys/i386/include/pcb.h b/sys/i386/include/pcb.h index 519730fe15e6..fdcedcf8db55 100644 --- a/sys/i386/include/pcb.h +++ b/sys/i386/include/pcb.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)pcb.h 5.10 (Berkeley) 5/12/91 - * $Id: pcb.h,v 1.13 1996/04/19 07:28:04 phk Exp $ + * $Id: pcb.h,v 1.14 1996/04/25 06:20:19 phk Exp $ */ #ifndef _I386_PCB_H_ @@ -79,7 +79,7 @@ struct md_coredump { #ifdef KERNEL extern struct pcb *curpcb; /* our current running pcb */ -int savectx __P((struct pcb*)); +void savectx __P((struct pcb*)); #endif #endif /* _I386_PCB_H_ */ |
