summaryrefslogtreecommitdiff
path: root/sys/arch/bebox
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2001-06-19 08:34:49 +0000
committersimonb <simonb@NetBSD.org>2001-06-19 08:34:49 +0000
commit43eba608496d3c8a69bdf6bbadfec0df69f828ea (patch)
treede113112be3e4d0174f318550f9de50095ad526e /sys/arch/bebox
parenta8068ab82d9a7ff598ed92ae2b86a6ed21597334 (diff)
Make all the ppc delay() functions the same - formating change only, no
code changes. Step one of a unified ppc clock.c.
Diffstat (limited to 'sys/arch/bebox')
-rw-r--r--sys/arch/bebox/bebox/clock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/bebox/bebox/clock.c b/sys/arch/bebox/bebox/clock.c
index 7b5b1183694..605773fc15a 100644
--- a/sys/arch/bebox/bebox/clock.c
+++ b/sys/arch/bebox/bebox/clock.c
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.7 2000/01/19 02:52:18 msaitoh Exp $ */
+/* $NetBSD: clock.c,v 1.8 2001/06/19 08:34:49 simonb Exp $ */
/* $OpenBSD: clock.c,v 1.3 1997/10/13 13:42:53 pefo Exp $ */
/*
@@ -166,8 +166,9 @@ delay(n)
tb += (n * 1000 + ns_per_tick - 1) / ns_per_tick;
tbh = tb >> 32;
tbl = tb;
- asm ("1: mftbu %0; cmpw %0,%1; blt 1b; bgt 2f; mftb %0; cmpw %0,%2; blt 1b; 2:"
- :: "r"(scratch), "r"(tbh), "r"(tbl));
+ asm volatile ("1: mftbu %0; cmplw %0,%1; blt 1b; bgt 2f;"
+ "mftb %0; cmplw %0,%2; blt 1b; 2:"
+ : "=r"(scratch) : "r"(tbh), "r"(tbl));
}
/*