summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-15 19:50:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-15 19:50:40 +0000
commitcce12d917b9c6261ec24df53b0c3b0a9a1afe247 (patch)
treed52593cd9ef97090045e1c61b8cd0e23dc1b0a8a /sys/arch/powerpc
parent99f51f841264d8a8b02dbb59090bfc5bd3ea31a9 (diff)
__asm__ and __volatile__
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/cpu.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h
index 964844e92ee..7a4c581a067 100644
--- a/sys/arch/powerpc/include/cpu.h
+++ b/sys/arch/powerpc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.3 1997/10/13 10:53:42 pefo Exp $ */
+/* $OpenBSD: cpu.h,v 1.4 2001/01/15 19:50:39 deraadt Exp $ */
/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */
/*
@@ -67,15 +67,15 @@ syncicache(from, len)
void *p = from;
do {
- asm volatile ("dcbst 0,%0" :: "r"(p));
+ __asm__ __volatile__ ("dcbst 0,%0" :: "r"(p));
p += CACHELINESIZE;
} while ((l -= CACHELINESIZE) > 0);
- asm volatile ("sync");
+ __asm__ __volatile__ ("sync");
do {
- asm volatile ("icbi 0,%0" :: "r"(from));
+ __asm__ __volatile__ ("icbi 0,%0" :: "r"(from));
from += CACHELINESIZE;
} while ((len -= CACHELINESIZE) > 0);
- asm volatile ("isync");
+ __asm__ __volatile__ ("isync");
}
extern char *bootpath;