summaryrefslogtreecommitdiffstats
path: root/sys/sun4v/include
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-06-09 21:55:17 +0000
committermarcel <marcel@FreeBSD.org>2007-06-09 21:55:17 +0000
commit75588c5a15dad18e2f69aee6a984065d314bffb7 (patch)
treea56b45624c5012a67b32e122f42c41c6b2e7d8a4 /sys/sun4v/include
parent12d804e413f2c44d9e10f25ee1b546f2b48c598b (diff)
downloadFreeBSD-src-75588c5a15dad18e2f69aee6a984065d314bffb7.zip
FreeBSD-src-75588c5a15dad18e2f69aee6a984065d314bffb7.tar.gz
Add kdb_cpu_sync_icache(), intended to synchronize instruction
caches with data caches after writing to memory. This typically is required to make breakpoints work on ia64 and powerpc. For those architectures the function is implemented.
Diffstat (limited to 'sys/sun4v/include')
-rw-r--r--sys/sun4v/include/kdb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sun4v/include/kdb.h b/sys/sun4v/include/kdb.h
index e5b39c0..92b2ed7 100644
--- a/sys/sun4v/include/kdb.h
+++ b/sys/sun4v/include/kdb.h
@@ -42,6 +42,11 @@ kdb_cpu_set_singlestep(void)
}
static __inline void
+kdb_cpu_sync_icache(unsigned char *addr, size_t size)
+{
+}
+
+static __inline void
kdb_cpu_trap(int vector, int _)
{
flushw();
OpenPOWER on IntegriCloud