Changeset 0c39b96 in mainline
- Timestamp:
- 2010-09-03T21:46:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 343f2b7e
- Parents:
- 20235a3
- Location:
- kernel/arch/mips32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/debug/stacktrace.c
r20235a3 r0c39b96 180 180 return false; 181 181 /* too big offsets are suspicious */ 182 if ( offset > 32 * 4)182 if ((size_t) offset > sizeof(istate_t)) 183 183 return false; 184 184 -
kernel/arch/mips32/src/start.S
r20235a3 r0c39b96 91 91 92 92 /* 93 * The fake ABI prologue is never executed and may not be part of the 94 * procedure's body. Instead, it should be immediately preceding the procedure's 95 * body. Its only purpose is to trick the stack trace walker into thinking that 96 * the exception is more or less just a normal function call. 97 */ 98 .macro FAKE_ABI_PROLOGUE 99 sub $sp, ISTATE_SOFT_SIZE 100 sw $ra, ISTATE_OFFSET_EPC($sp) 101 .endm 102 103 /* 93 104 * Save registers to space defined by \r 94 105 * We will change status: Disable ERL, EXL, UM, IE … … 251 262 nop 252 263 264 FAKE_ABI_PROLOGUE 253 265 exception_handler: 254 266 KERNEL_STACK_TO_K0 … … 293 305 */ 294 306 syscall_shortcut: 295 /* we have a lot of space on the stack, with free use */296 307 mfc0 $t3, $epc 297 308 mfc0 $t2, $status … … 339 350 eret 340 351 352 FAKE_ABI_PROLOGUE 341 353 tlb_refill_handler: 342 354 KERNEL_STACK_TO_K0 … … 352 364 eret 353 365 366 FAKE_ABI_PROLOGUE 354 367 cache_error_handler: 355 368 KERNEL_STACK_TO_K0
Note:
See TracChangeset
for help on using the changeset viewer.