Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/stand/bootxx Avoid warning about dcbf, icbi ...
details: https://anonhg.NetBSD.org/src/rev/7d8fa0afb99a
branches: trunk
changeset: 1006689:7d8fa0afb99a
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Jan 23 17:23:03 2020 +0000
description:
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.
diffstat:
sys/arch/macppc/stand/bootxx/bootxx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r a46286d392ef -r 7d8fa0afb99a sys/arch/macppc/stand/bootxx/bootxx.c
--- a/sys/arch/macppc/stand/bootxx/bootxx.c Thu Jan 23 17:03:20 2020 +0000
+++ b/sys/arch/macppc/stand/bootxx/bootxx.c Thu Jan 23 17:23:03 2020 +0000
@@ -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 @@
" 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"
Home |
Main Index |
Thread Index |
Old Index