Go to the documentation of this file.
56 #ifndef _ASM_REGISTERS_H
57 #define _ASM_REGISTERS_H
60 #define __OFFSET(X,N) ((X)+(N)*4)
61 #define __OFFSETC(X,N) xxxxxxxxxxxxxxxxxxxxxxxx
63 #define __OFFSET(X,N) ((X)+(N)*4)
64 #define __OFFSETC(X,N) ((X)+(N))
126 #define REG__STATUS_STEP 0x00000001
127 #define REG__STATUS_STEPPED 0x00000002
128 #define REG__STATUS_BROKE 0x00000004
129 #define REG__STATUS_SYSC_ENTRY 0x40000000
130 #define REG__STATUS_SYSC_EXIT 0x80000000
132 #define REG_GR(R) __OFFSET(REG_GR0, (R))
134 #define REG_SP REG_GR(1)
135 #define REG_FP REG_GR(2)
136 #define REG_PREV_FRAME REG_GR(28)
137 #define REG_CURR_TASK REG_GR(29)
183 unsigned long gr[64];
190 unsigned long fr[64];
221 #define __INT_GR(R) __OFFSET(__INT_GR0, (R))
223 #define __FPMEDIA_FR(R) __OFFSET(__FPMEDIA_FR0, (R))
224 #define __FPMEDIA_FNER(R) __OFFSET(__FPMEDIA_FNER0, (R))
225 #define __FPMEDIA_MSR(R) __OFFSET(__FPMEDIA_MSR0, (R))
226 #define __FPMEDIA_ACC(R) __OFFSET(__FPMEDIA_ACC0, (R))
227 #define __FPMEDIA_ACCG(R) __OFFSETC(__FPMEDIA_ACCG0, (R))
228 #define __FPMEDIA_FSR(R) __OFFSET(__FPMEDIA_FSR0, (R))
230 #define __THREAD_GR(R) __OFFSET(__THREAD_GR16, (R) - 16)