aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorLuoqi Chen <luoqi@FreeBSD.org>1999-05-12 21:30:51 +0000
committerLuoqi Chen <luoqi@FreeBSD.org>1999-05-12 21:30:51 +0000
commit2ee16532b6c34e1b24c309d99a395bd94b5887d0 (patch)
tree80a524c090ec436c25a01f4eb55137327bdb318d /sys
parentd8bd93842e7ac8dfb572b7bf9687a7cca2ec8c6a (diff)
VM86_FRAMESIZE is now the size of vm86 frame, not the number of 4-byte words.
Requested by: Bruce
Notes
Notes: svn path=/head/; revision=47080
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/genassym.c4
-rw-r--r--sys/i386/i386/genassym.c4
-rw-r--r--sys/i386/i386/vm86bios.s6
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c
index 6cea9bea1cfb..e2e772347923 100644
--- a/sys/amd64/amd64/genassym.c
+++ b/sys/amd64/amd64/genassym.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
- * $Id: genassym.c,v 1.66 1999/04/28 01:03:18 luoqi Exp $
+ * $Id: genassym.c,v 1.67 1999/05/11 16:04:39 luoqi Exp $
*/
#include "opt_vm86.h"
@@ -233,7 +233,7 @@ main()
#endif
printf("#define\tGPROC0_SEL %#x\n", GPROC0_SEL);
#ifdef VM86
- printf("#define\tVM86_FRAMESIZE %#x\n", sizeof(struct vm86frame) / 4);
+ printf("#define\tVM86_FRAMESIZE %#x\n", sizeof(struct vm86frame));
#endif
return (0);
diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c
index 6cea9bea1cfb..e2e772347923 100644
--- a/sys/i386/i386/genassym.c
+++ b/sys/i386/i386/genassym.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
- * $Id: genassym.c,v 1.66 1999/04/28 01:03:18 luoqi Exp $
+ * $Id: genassym.c,v 1.67 1999/05/11 16:04:39 luoqi Exp $
*/
#include "opt_vm86.h"
@@ -233,7 +233,7 @@ main()
#endif
printf("#define\tGPROC0_SEL %#x\n", GPROC0_SEL);
#ifdef VM86
- printf("#define\tVM86_FRAMESIZE %#x\n", sizeof(struct vm86frame) / 4);
+ printf("#define\tVM86_FRAMESIZE %#x\n", sizeof(struct vm86frame));
#endif
return (0);
diff --git a/sys/i386/i386/vm86bios.s b/sys/i386/i386/vm86bios.s
index 4f9284ddea9b..59accf717bef 100644
--- a/sys/i386/i386/vm86bios.s
+++ b/sys/i386/i386/vm86bios.s
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vm86bios.s,v 1.10 1999/05/11 15:57:42 luoqi Exp $
+ * $Id: vm86bios.s,v 1.11 1999/05/11 16:04:40 luoqi Exp $
*/
#include "opt_vm86.h"
@@ -89,7 +89,7 @@ ENTRY(vm86_bioscall)
movl SCR_VMFRAME(%edx),%ebx /* target frame location */
movl %ebx,%edi /* destination */
movl SCR_ARGFRAME(%edx),%esi /* source (set on entry) */
- movl $VM86_FRAMESIZE,%ecx /* sizeof(struct vm86frame)/4 */
+ movl $VM86_FRAMESIZE/4,%ecx /* sizeof(struct vm86frame)/4 */
cld
rep
movsl /* copy frame to new stack */
@@ -162,7 +162,7 @@ ENTRY(vm86_biosret)
movl 4(%esp),%esi /* source */
movl SCR_ARGFRAME(%edx),%edi /* destination */
- movl $VM86_FRAMESIZE,%ecx /* size */
+ movl $VM86_FRAMESIZE/4,%ecx /* size */
cld
rep
movsl /* copy frame to original frame */