summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-27 05:24:45 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-27 05:24:45 +0100
commitf24bb83fc70d1d7f370f956b4209463d817b8f75 (patch)
treec765df4db3336a37e1b7ed87df23a16c611cad4f
parent0744feb692857f4262f321305a19651f7abe5e7a (diff)
Add prototypes for x86 debug registers
* i386/i386/db_interface.h (I386_DB_TYPE_X, I386_DB_TYPE_W, I386_DB_TYPE_RW, I386_DB_LEN_1, I386_DB_LEN_2, I386_DB_LEN_4, I386_DB_LOCAL, I386_DB_GLOBAL): New macros. (dr0, dr1, dr2, dr3): New function prototypes.
-rw-r--r--i386/i386/db_interface.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/i386/i386/db_interface.h b/i386/i386/db_interface.h
index 8cd1690..a81c8ee 100644
--- a/i386/i386/db_interface.h
+++ b/i386/i386/db_interface.h
@@ -55,4 +55,20 @@ extern boolean_t db_phys_eq (
extern void db_task_name (task_t task);
+#define I386_DB_TYPE_X 0
+#define I386_DB_TYPE_W 1
+#define I386_DB_TYPE_RW 3
+
+#define I386_DB_LEN_1 0
+#define I386_DB_LEN_2 1
+#define I386_DB_LEN_4 3
+
+#define I386_DB_LOCAL 1
+#define I386_DB_GLOBAL 2
+
+extern unsigned long dr0 (vm_offset_t linear_addr, int type, int len, int persistence);
+extern unsigned long dr1 (vm_offset_t linear_addr, int type, int len, int persistence);
+extern unsigned long dr2 (vm_offset_t linear_addr, int type, int len, int persistence);
+extern unsigned long dr3 (vm_offset_t linear_addr, int type, int len, int persistence);
+
#endif /* _I386_DB_INTERFACE_H_ */