summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-02 10:49:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-02 10:49:06 +0000
commita31600a75bd96662f33f17b17741c95f189f18a9 (patch)
tree457ab0f193dfda3455f3d67e3e3d484fa5913ec2 /sys/arch/mvme68k
parent3f9962e86625ca4d4160f56ff6f42c911b9d3f3c (diff)
use movl/subl instead of #sym-sym; pleases new gas
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/stand/sboot/XBUG.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/stand/sboot/XBUG.S b/sys/arch/mvme68k/stand/sboot/XBUG.S
index e3016b8ad0c..2d4e0dc0bf6 100644
--- a/sys/arch/mvme68k/stand/sboot/XBUG.S
+++ b/sys/arch/mvme68k/stand/sboot/XBUG.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: XBUG.S,v 1.3 1996/04/28 10:49:32 deraadt Exp $ */
+/* $OpenBSD: XBUG.S,v 1.4 1998/04/02 10:49:05 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -59,7 +59,8 @@ bootlabelend:
| clear bss and the kernel location
bssclr: movl #_edata,a0
- movl #_end - _edata,d0
+ movl #_end,d0
+ subl #_edata,d0
1: clrb a0@+
subql #1,d0
bpl 1b
@@ -67,7 +68,8 @@ bssclr: movl #_edata,a0
| rip the data segment from ROM into ram..
movl #_etext,a2 | start of data
movl #0x4000,a1 | shovel address
- movl #_edata - _etext,d0
+ movl #_edata,d0
+ subl #_etext,d0
1: movb a2@+,a1@+
subql #1,d0
bpl 1b