]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix types in debug register functions
authorErik van der Kouwe <erik@minix3.org>
Wed, 28 Apr 2010 08:35:05 +0000 (08:35 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 28 Apr 2010 08:35:05 +0000 (08:35 +0000)
kernel/arch/i386/breakpoints.c
kernel/arch/i386/debugreg.S
kernel/arch/i386/debugreg.h

index 28c5a03c69778fce960eaa65fab2b5e2ff3134ff..4a4af8d77611e672385fcd7d7d1f914d777829f3 100644 (file)
@@ -5,7 +5,7 @@
 
 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;
index 9d60c5bc00a3105d07691196e0c821c4bb584a6f..1d220ab0fd8b347703a81ffa81ac2418d6829a79 100644 (file)
@@ -14,13 +14,17 @@ st_##reg:                                                           ;\
        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)
-
index e8f9f78974d74cf1d0f64418fe3e52d08c563c1e..56b8a48c3ef35c75bbccbddc079403e13724d6b7 100644 (file)
@@ -31,14 +31,14 @@ void ld_dr0(phys_bytes value);
 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__ */