summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-10-01 00:54:36 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-10-01 00:54:36 +0000
commit000f7ca7ccaeb10a6dde499a82dcba369c2b87b9 (patch)
tree6fde2d6ee34308360fdeeaa7aac42923ed255550 /libexec/ld.so
parent6fe6c72bf07c3fcd2c824ab7a802f0e8f5638c76 (diff)
Sync the cache as specified by the powerpc manuals, didn't change anything.
but is more correct.
Diffstat (limited to 'libexec/ld.so')
-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 836fa33e1be..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 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");
}