Module Name:    src
Committed By:   uwe
Date:           Thu Jan 23 17:23:03 UTC 2020

Modified Files:
        src/sys/arch/macppc/stand/bootxx: bootxx.c

Log Message:
Avoid warning about dcbf, icbi first argument.

as(1) is not quite happy when RA=0 argument to these instructions is
spelled as %r0 and emits a warning.  Spell that argument as 0 to
placate it.  Same object code is generated.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/macppc/stand/bootxx/bootxx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/stand/bootxx/bootxx.c
diff -u src/sys/arch/macppc/stand/bootxx/bootxx.c:1.20 src/sys/arch/macppc/stand/bootxx/bootxx.c:1.21
--- src/sys/arch/macppc/stand/bootxx/bootxx.c:1.20	Mon Oct 28 18:13:40 2019
+++ src/sys/arch/macppc/stand/bootxx/bootxx.c	Thu Jan 23 17:23:03 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: bootxx.c,v 1.20 2019/10/28 18:13:40 joerg Exp $	*/
+/*	$NetBSD: bootxx.c,v 1.21 2020/01/23 17:23:03 uwe Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -70,8 +70,8 @@ __asm(
 "	li	%r9,0x40	\n"	/* loop 64 times (for 2048 bytes of bootxx) */
 "	mtctr	%r9		\n"
 "				\n"
-"1:	dcbf	%r0,%r8		\n"
-"	icbi	%r0,%r8		\n"
+"1:	dcbf	0,%r8		\n"
+"	icbi	0,%r8		\n"
 "	addi	%r8,%r8,0x20	\n"
 "	bdnz	1b		\n"
 "	sync			\n"

Reply via email to