Changeset 294f7a52 in mainline
- Timestamp:
- 2010-07-16T10:04:25Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8dea4f
- Parents:
- b92ee1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/debug/stacktrace.c
rb92ee1e r294f7a52 50 50 extern void alloc_window_and_flush(void); 51 51 52 bool kernel_ frame_pointer_validate(uintptr_t fp)52 bool kernel_stack_trace_context_validate(stack_trace_context_t *ctx) 53 53 { 54 54 uintptr_t kstack; … … 63 63 kstack -= PREEMPTIBLE_HANDLER_STACK_FRAME_SIZE; 64 64 65 if (THREAD && ( fp == kstack))65 if (THREAD && (ctx->fp == kstack)) 66 66 return false; 67 return fp != 0;67 return ctx->fp != 0; 68 68 } 69 69 70 bool kernel_frame_pointer_prev( uintptr_t fp, uintptr_t *prev)70 bool kernel_frame_pointer_prev(stack_trace_context_t *ctx, uintptr_t *prev) 71 71 { 72 uint64_t *stack = (void *) fp;72 uint64_t *stack = (void *) ctx->fp; 73 73 alloc_window_and_flush(); 74 74 *prev = stack[FRAME_OFFSET_FP_PREV] + STACK_BIAS; … … 76 76 } 77 77 78 bool kernel_return_address_get( uintptr_t fp, uintptr_t *ra)78 bool kernel_return_address_get(stack_trace_context_t *ctx, uintptr_t *ra) 79 79 { 80 uint64_t *stack = (void *) fp;80 uint64_t *stack = (void *) ctx->fp; 81 81 alloc_window_and_flush(); 82 82 *ra = stack[FRAME_OFFSET_RA]; … … 84 84 } 85 85 86 bool uspace_ frame_pointer_validate(uintptr_t fp)86 bool uspace_stack_trace_context_validate(stack_trace_context_t *ctx) 87 87 { 88 88 return false; 89 89 } 90 90 91 bool uspace_frame_pointer_prev( uintptr_t fp, uintptr_t *prev)91 bool uspace_frame_pointer_prev(stack_trace_context_t *ctx, uintptr_t *prev) 92 92 { 93 93 return false; 94 94 } 95 95 96 bool uspace_return_address_get( uintptr_t fp, uintptr_t *ra)96 bool uspace_return_address_get(stack_trace_context_t *ctx , uintptr_t *ra) 97 97 { 98 98 return false;
Note:
See TracChangeset
for help on using the changeset viewer.