summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/arch/vax/memset.S
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-07-05 21:11:57 +0000
committermiod <miod@openbsd.org>2013-07-05 21:11:57 +0000
commitbbe001e9128f508fa19ca56a409d24e6bdf7d6f9 (patch)
treea39cc1a3da85633fa4de750ade4fc1a573acf5e4 /sys/lib/libkern/arch/vax/memset.S
parentVAX ELF userland bits. Consists mostly of register prefix additions. (diff)
downloadwireguard-openbsd-bbe001e9128f508fa19ca56a409d24e6bdf7d6f9.tar.xz
wireguard-openbsd-bbe001e9128f508fa19ca56a409d24e6bdf7d6f9.zip
VAX ELF kernel bits.
Diffstat (limited to 'sys/lib/libkern/arch/vax/memset.S')
-rw-r--r--sys/lib/libkern/arch/vax/memset.S18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/lib/libkern/arch/vax/memset.S b/sys/lib/libkern/arch/vax/memset.S
index f8cc2331247..80ce2a2f752 100644
--- a/sys/lib/libkern/arch/vax/memset.S
+++ b/sys/lib/libkern/arch/vax/memset.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: memset.S,v 1.1 2009/08/19 19:47:53 miod Exp $ */
+/* $OpenBSD: memset.S,v 1.2 2013/07/05 21:11:57 miod Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -33,16 +33,16 @@
#include <machine/asm.h>
ENTRY(memset, R2|R3|R4|R5)
- movl 4(ap),r3
+ movl 4(%ap),%r3
1:
- movzwl $65535,r0
- movq 8(ap),r1
- cmpl r2,r0
+ movzwl $65535,%r0
+ movq 8(%ap),%r1
+ cmpl %r2,%r0
jgtru 2f
- movc5 $0,(r3),r1,r2,(r3)
- movl r1,r0
+ movc5 $0,(%r3),%r1,%r2,(%r3)
+ movl %r1,%r0
ret
2:
- subl2 r0,12(ap)
- movc5 $0,(r3),r1,r0,(r3)
+ subl2 %r0,12(%ap)
+ movc5 $0,(%r3),%r1,%r0,(%r3)
jbr 1b