Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/debug/stacktrace.c

    rb92ee1e rd99c1d2  
    3737#include <typedefs.h>
    3838
    39 #define FRAME_OFFSET_FP_PREV  0
    40 #define FRAME_OFFSET_RA       1
    41 
    42 bool kernel_stack_trace_context_validate(stack_trace_context_t *ctx)
     39bool kernel_frame_pointer_validate(uintptr_t fp)
    4340{
    44         return ctx->fp != 0;
     41        return false;
    4542}
    4643
    47 bool kernel_frame_pointer_prev(stack_trace_context_t *ctx, uintptr_t *prev)
     44bool kernel_frame_pointer_prev(uintptr_t fp, uintptr_t *prev)
    4845{
    49         uint32_t *stack = (void *) ctx->fp;
    50         *prev = stack[FRAME_OFFSET_FP_PREV];
    51         return true;
     46        return false;
    5247}
    5348
    54 bool kernel_return_address_get(stack_trace_context_t *ctx, uintptr_t *ra)
     49bool kernel_return_address_get(uintptr_t fp, uintptr_t *ra)
    5550{
    56         uint32_t *stack = (void *) ctx->fp;
    57         *ra = stack[FRAME_OFFSET_RA];
    58         return true;
     51        return false;
    5952}
    6053
    61 bool uspace_stack_trace_context_validate(stack_trace_context_t *ctx)
     54bool uspace_frame_pointer_validate(uintptr_t fp)
    6255{
    63         return ctx->fp != 0;
     56        return false;
    6457}
    6558
    66 bool uspace_frame_pointer_prev(stack_trace_context_t *ctx, uintptr_t *prev)
     59bool uspace_frame_pointer_prev(uintptr_t fp, uintptr_t *prev)
    6760{
    68         return !copy_from_uspace((void *) prev,
    69             (uint32_t *) ctx->fp + FRAME_OFFSET_FP_PREV, sizeof(*prev));
     61        return false;
    7062}
    7163
    72 bool uspace_return_address_get(stack_trace_context_t *ctx, uintptr_t *ra)
     64bool uspace_return_address_get(uintptr_t fp, uintptr_t *ra)
    7365{
    74         return !copy_from_uspace((void *) ra,
    75             (uint32_t *) ctx->fp + FRAME_OFFSET_RA, sizeof(*ra));
     66        return false;
    7667}
    7768
Note: See TracChangeset for help on using the changeset viewer.