Changeset 96b02eb9 in mainline for kernel/arch/mips32
- Timestamp:
- 2010-12-14T12:52:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b10dab
- Parents:
- 554debd
- Location:
- kernel/arch/mips32
- Files:
-
- 5 edited
-
include/debugger.h (modified) (2 diffs)
-
include/fpu_context.h (modified) (1 diff)
-
include/types.h (modified) (2 diffs)
-
src/debugger.c (modified) (5 diffs)
-
src/mips32.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/debugger.h
r554debd r96b02eb9 58 58 59 59 typedef struct { 60 uintptr_t address; /**< Breakpoint address */61 unative_t instruction; /**< Original instruction */62 unative_t nextinstruction; /**< Original instruction following break */63 unsigned int flags; /**< Flags regarding breakpoint */60 uintptr_t address; /**< Breakpoint address */ 61 sysarg_t instruction; /**< Original instruction */ 62 sysarg_t nextinstruction; /**< Original instruction following break */ 63 unsigned int flags; /**< Flags regarding breakpoint */ 64 64 size_t counter; 65 65 void (*bkfunc)(void *, istate_t *); … … 68 68 extern bpinfo_t breakpoints[BKPOINTS_MAX]; 69 69 70 extern bool is_jump( unative_t);70 extern bool is_jump(sysarg_t); 71 71 72 72 extern void debugger_init(void); -
kernel/arch/mips32/include/fpu_context.h
r554debd r96b02eb9 38 38 #include <typedefs.h> 39 39 40 #define FPU_CONTEXT_ALIGN sizeof( unative_t)40 #define FPU_CONTEXT_ALIGN sizeof(sysarg_t) 41 41 42 42 typedef struct { 43 unative_t dregs[32];44 unative_t cregs[32];43 sysarg_t dregs[32]; 44 sysarg_t cregs[32]; 45 45 } fpu_context_t; 46 46 -
kernel/arch/mips32/include/types.h
r554debd r96b02eb9 43 43 typedef uint32_t ipl_t; 44 44 45 typedef uint32_t unative_t;45 typedef uint32_t sysarg_t; 46 46 typedef int32_t native_t; 47 47 typedef uint32_t atomic_count_t; … … 54 54 55 55 #define PRIdn PRId32 /**< Format for native_t. */ 56 #define PRIun PRIu32 /**< Format for unative_t. */57 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */56 #define PRIun PRIu32 /**< Format for sysarg_t. */ 57 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */ 58 58 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 59 59 -
kernel/arch/mips32/src/debugger.c
r554debd r96b02eb9 134 134 * 135 135 */ 136 bool is_jump( unative_t instr)136 bool is_jump(sysarg_t instr) 137 137 { 138 138 unsigned int i; … … 166 166 return 0; 167 167 } else if ((breakpoints[i].address == (uintptr_t) argv->intval + 168 sizeof( unative_t)) || (breakpoints[i].address ==169 (uintptr_t) argv->intval - sizeof( unative_t))) {168 sizeof(sysarg_t)) || (breakpoints[i].address == 169 (uintptr_t) argv->intval - sizeof(sysarg_t))) { 170 170 printf("Adjacent breakpoints not supported, conflict " 171 171 "with %d.\n", i); … … 194 194 195 195 cur->address = (uintptr_t) argv->intval; 196 cur->instruction = (( unative_t *) cur->address)[0];197 cur->nextinstruction = (( unative_t *) cur->address)[1];196 cur->instruction = ((sysarg_t *) cur->address)[0]; 197 cur->nextinstruction = ((sysarg_t *) cur->address)[1]; 198 198 if (argv == &add_argv) { 199 199 cur->flags = 0; … … 209 209 210 210 /* Set breakpoint */ 211 *(( unative_t *) cur->address) = 0x0d;211 *((sysarg_t *) cur->address) = 0x0d; 212 212 smc_coherence(cur->address); 213 213 … … 341 341 /* Reinst only breakpoint */ 342 342 if ((breakpoints[i].flags & BKPOINT_REINST) && 343 (fireaddr == breakpoints[i].address + sizeof( unative_t))) {343 (fireaddr == breakpoints[i].address + sizeof(sysarg_t))) { 344 344 cur = &breakpoints[i]; 345 345 break; -
kernel/arch/mips32/src/mips32.c
r554debd r96b02eb9 233 233 * possible to have it separately in the future. 234 234 */ 235 unative_t sys_tls_set(unative_t addr)235 sysarg_t sys_tls_set(sysarg_t addr) 236 236 { 237 237 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.
