summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrahnds <rahnds@openbsd.org>2000-10-01 00:54:35 +0000
committerrahnds <rahnds@openbsd.org>2000-10-01 00:54:35 +0000
commitc6ba024761d1b3ac093eae364b790969af871b0c (patch)
tree01ea6a9b8e17bd0a09800f3c55a4137f5244ac9f
parentFix some very serious cut and paste errors in this code. (diff)
downloadwireguard-openbsd-c6ba024761d1b3ac093eae364b790969af871b0c.tar.xz
wireguard-openbsd-c6ba024761d1b3ac093eae364b790969af871b0c.zip
Sync the cache as specified by the powerpc manuals, didn't change anything.
but is more correct.
-rw-r--r--libexec/ld.so/powerpc/archdep.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libexec/ld.so/powerpc/archdep.h b/libexec/ld.so/powerpc/archdep.h
index 9b84bf0690b..005c3cd75d2 100644
--- a/libexec/ld.so/powerpc/archdep.h
+++ b/libexec/ld.so/powerpc/archdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archdep.h,v 1.1.1.1 2000/06/13 03:40:32 rahnds Exp $ */
+/* $OpenBSD: archdep.h,v 1.2 2000/10/01 00:54:35 rahnds Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -73,8 +73,11 @@
static inline void
_dl_dcbf(Elf32_Addr *addr)
{
- __asm__ volatile ("li 0, 0\n\t"
- "dcbf 0, %0"
+ __asm__ volatile ("dcbst 0, %0\n\t"
+ "sync\n\t"
+ "icbi 0, %0\n\t"
+ "sync\n\t"
+ "isync"
: : "r" (addr) : "0");
}