summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2019-09-03 14:34:53 +0000
committerkettenis <kettenis@openbsd.org>2019-09-03 14:34:53 +0000
commita0aab250946c1b59cfbbea6f832f9dc01313ffe5 (patch)
tree29b9c5ecaa9cf5918f5e34c5ad09d182322a4e02
parentsome cleanup for clang; ok kettenis (diff)
downloadwireguard-openbsd-a0aab250946c1b59cfbbea6f832f9dc01313ffe5.tar.xz
wireguard-openbsd-a0aab250946c1b59cfbbea6f832f9dc01313ffe5.zip
Use cmplw mnemonic instead of cmpl with only 3 operands. Make clang happy.
ok deraadt@
-rw-r--r--sys/arch/macppc/macppc/locore.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/locore.S b/sys/arch/macppc/macppc/locore.S
index 305b24b9fe3..d6ffdd21be9 100644
--- a/sys/arch/macppc/macppc/locore.S
+++ b/sys/arch/macppc/macppc/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.56 2017/06/13 01:44:29 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.57 2019/09/03 14:34:53 kettenis Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
@@ -428,7 +428,7 @@ _C_LABEL(tlbimiss):
mtctr %r1 /* load counter */
2:
lwzu %r1,8(%r2) /* get next pte */
- cmpl 0,%r1,%r3 /* see if found pte */
+ cmplw 0,%r1,%r3 /* see if found pte */
bdneq 2b /* loop if not eq */
bne 3f /* not found */
lwz %r1,4(%r2) /* load tlb entry lower word */
@@ -486,7 +486,7 @@ _C_LABEL(tlbdlmiss):
mtctr %r1 /* load counter */
2:
lwzu %r1,8(%r2) /* get next pte */
- cmpl 0,%r1,%r3 /* see if found pte */
+ cmplw 0,%r1,%r3 /* see if found pte */
bdneq 2b /* loop if not eq */
bne 3f /* not found */
lwz %r1,4(%r2) /* load tlb entry lower word */
@@ -539,7 +539,7 @@ _C_LABEL(tlbdsmiss):
mtctr %r1 /* load counter */
2:
lwzu %r1,8(%r2) /* get next pte */
- cmpl 0,%r1,%r3 /* see if found pte */
+ cmplw 0,%r1,%r3 /* see if found pte */
bdneq 2b /* loop if not eq */
bne 3f /* not found */
lwz %r1,4(%r2) /* load tlb entry lower word */