aboutsummaryrefslogtreecommitdiff
path: root/sys/sun4v
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2007-06-09 21:55:17 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2007-06-09 21:55:17 +0000
commit01bd17cc99b1927537115fc76d3b332406a11b1d (patch)
treea56b45624c5012a67b32e122f42c41c6b2e7d8a4 /sys/sun4v
parenta1fe14bc333c7b2b9886a7cdd7d78677e0a01413 (diff)
downloadsrc-01bd17cc99b1927537115fc76d3b332406a11b1d.tar.gz
src-01bd17cc99b1927537115fc76d3b332406a11b1d.zip
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.
Notes
Notes: svn path=/head/; revision=170473
Diffstat (limited to 'sys/sun4v')
-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 e5b39c04d2bb..92b2ed7d4e42 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();