summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-17 12:07:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-17 12:07:22 +0000
commit6cb9f1c3d3ba95dd1a0d3e3d6f3a0a3658215152 (patch)
tree180c286f7aa36324dd11b389167595575a87cd0a /sys/arch/i386
parentb890e94d67837e3def6a7c3a3b02f4ce68e66f45 (diff)
fix the thing gas freaks out about; weingart will fix better if required
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/locore.s7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s
index 8ba928f2092..e843bbccac1 100644
--- a/sys/arch/i386/i386/locore.s
+++ b/sys/arch/i386/i386/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.39 1998/01/29 11:30:27 niklas Exp $ */
+/* $OpenBSD: locore.s,v 1.40 1998/02/17 12:07:21 deraadt Exp $ */
/* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */
/*-
@@ -402,7 +402,10 @@ try586: /* Use the `cpuid' instruction. */
/* Clear the BSS. */
movl $RELOC(_edata),%edi
- movl $(((_end-_edata)+3)>>2),%ecx
+ movl $_end, %ecx
+ subl $_edata, %ecx
+ addl $3, %ecx
+ shrl $2, %ecx
xorl %eax,%eax
cld
rep