PRIVATE int breakpoint_set(phys_bytes linaddr, int bp, const int flags)
{
- u32_t dr7, dr7flags;
+ unsigned long dr7, dr7flags;
if (bp >= BREAKPOINT_COUNT)
return EINVAL;
ret
/*
- * void ld_dr0(u32_t value)
- * u32_t st_dr0(void)
+ * void ld_dr0(phys_bytes value)
+ * phys_bytes st_dr0(void)
*/
LD_ST_REG(dr0)
LD_ST_REG(dr1)
LD_ST_REG(dr2)
LD_ST_REG(dr3)
+
+/*
+ * void ld_dr0(unsigned long value)
+ * unsigned long st_dr0(void)
+ */
LD_ST_REG(dr6)
LD_ST_REG(dr7)
-
void ld_dr1(phys_bytes value);
void ld_dr2(phys_bytes value);
void ld_dr3(phys_bytes value);
-void ld_dr6(phys_bytes value);
-void ld_dr7(phys_bytes value);
-u32_t st_dr0(void);
-u32_t st_dr1(void);
-u32_t st_dr2(void);
-u32_t st_dr3(void);
-u32_t st_dr6(void);
-u32_t st_dr7(void);
+void ld_dr6(unsigned long value);
+void ld_dr7(unsigned long value);
+phys_bytes st_dr0(void);
+phys_bytes st_dr1(void);
+phys_bytes st_dr2(void);
+phys_bytes st_dr3(void);
+unsigned long st_dr6(void);
+unsigned long st_dr7(void);
#endif /* __DEBUGREG_H__ */