Commits

bsmiles32  committed caa1ccb

Named some constants.

  • Participants
  • Parent commits c93051e

Comments (0)

Files changed (1)

 #define RSP_STATUS_INTR_ON_BREAK    0x40
 #define RSP_STATUS_TASKDONE         0x200
 
+/* some rdp status flags */
+#define DP_STATUS_FREEZE            0x2
+
+/* some mips interface interrupt flags */
+#define MI_INTR_SP                  0x1
+
 
 /* helper functions prototypes */
 static unsigned int sum_bytes(const unsigned char *bytes, unsigned int size);
 
     if ((*rsp.SP_STATUS_REG & RSP_STATUS_INTR_ON_BREAK))
     {
-        *rsp.MI_INTR_REG |= 0x1;
+        *rsp.MI_INTR_REG |= MI_INTR_SP;
         rsp.CheckInterrupts();
     }
 }
     if (rsp.ProcessDlistList != NULL)
     {
         rsp.ProcessDlistList();
-        *rsp.DPC_STATUS_REG &= ~0x0002;
+        *rsp.DPC_STATUS_REG &= ~DP_STATUS_FREEZE;
     }
 }