Ignore:
Timestamp:
2013-12-28T17:30:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41b735f3
Parents:
c1023bcb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/sparc32/src/stacktrace.c

    rc1023bcb r1df1905  
    3939#include <libarch/stack.h>
    4040#include <errno.h>
    41 
    4241#include <stacktrace.h>
    4342
    44 #define FRAME_OFFSET_FP_PREV    (14 * 4)
    45 #define FRAME_OFFSET_RA         (15 * 4)
     43#define FRAME_OFFSET_FP_PREV  (14 * 4)
     44#define FRAME_OFFSET_RA       (15 * 4)
    4645
    4746bool stacktrace_fp_valid(stacktrace_t *st, uintptr_t fp)
     
    5453{
    5554        uintptr_t bprev;
    56         int rc;
    57 
    58         rc = (*st->read_uintptr)(st->op_arg, fp + FRAME_OFFSET_FP_PREV, &bprev);
     55        int rc = (*st->read_uintptr)(st->op_arg, fp + FRAME_OFFSET_FP_PREV,
     56            &bprev);
    5957        if (rc == EOK)
    6058                *prev = bprev;
     59       
    6160        return rc;
    6261}
     
    6463int stacktrace_ra_get(stacktrace_t *st, uintptr_t fp, uintptr_t *ra)
    6564{
    66         return (*st->read_uintptr)(st->op_arg, fp + FRAME_OFFSET_RA, ra);
     65        return *st->read_uintptr(st->op_arg, fp + FRAME_OFFSET_RA, ra);
    6766}
    6867
Note: See TracChangeset for help on using the changeset viewer.