Page MenuHomeFreeBSD

D29155.1785239250.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D29155.1785239250.diff

diff --git a/sys/mips/include/kdb.h b/sys/mips/include/kdb.h
--- a/sys/mips/include/kdb.h
+++ b/sys/mips/include/kdb.h
@@ -55,4 +55,19 @@
kdb_cpu_sync_icache(unsigned char *addr, size_t size)
{
}
+
+static __inline int
+kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access)
+{
+
+ return (ENXIO);
+}
+
+static __inline int
+kdb_cpu_clr_watchpoint(vm_offset_t addr, vm_size_t size)
+{
+
+ return (0);
+}
+
#endif /* _MACHINE_KDB_H_ */
diff --git a/sys/powerpc/include/kdb.h b/sys/powerpc/include/kdb.h
--- a/sys/powerpc/include/kdb.h
+++ b/sys/powerpc/include/kdb.h
@@ -54,4 +54,18 @@
{
}
+static __inline int
+kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access)
+{
+
+ return (ENXIO);
+}
+
+static __inline int
+kdb_cpu_clr_watchpoint(vm_offset_t addr, vm_size_t size)
+{
+
+ return (0);
+}
+
#endif /* _MACHINE_KDB_H_ */
diff --git a/sys/riscv/include/kdb.h b/sys/riscv/include/kdb.h
--- a/sys/riscv/include/kdb.h
+++ b/sys/riscv/include/kdb.h
@@ -59,4 +59,18 @@
{
}
+static __inline int
+kdb_cpu_set_watchpoint(vm_offset_t addr, vm_size_t size, int access)
+{
+
+ return (ENXIO);
+}
+
+static __inline int
+kdb_cpu_clr_watchpoint(vm_offset_t addr, vm_size_t size)
+{
+
+ return (0);
+}
+
#endif /* _MACHINE_KDB_H_ */
diff --git a/sys/sys/kdb.h b/sys/sys/kdb.h
--- a/sys/sys/kdb.h
+++ b/sys/sys/kdb.h
@@ -127,4 +127,10 @@
#define KDB_REQ_PANIC 2 /* User requested a panic */
#define KDB_REQ_REBOOT 3 /* User requested a clean reboot */
+/* Debug breakpoint/watchpoint access types */
+#define KDB_DBG_ACCESS_EXEC 0
+#define KDB_DBG_ACCESS_R 1
+#define KDB_DBG_ACCESS_W 2
+#define KDB_DBG_ACCESS_RW 3
+
#endif /* !_SYS_KDB_H_ */

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 28, 11:47 AM (19 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29290468
Default Alt Text
D29155.1785239250.diff (1 KB)

Event Timeline