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

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

File:
1 edited

Legend:

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

    rf6f22cdb r32e8cd1  
    3737#include <syscall/copy.h>
    3838#include <typedefs.h>
    39 
    4039#include <arch.h>
    4140#include <arch/stack.h>
    4241
    43 #define FRAME_OFFSET_FP_PREV    14
    44 #define FRAME_OFFSET_RA         15
     42#define FRAME_OFFSET_FP_PREV  14
     43#define FRAME_OFFSET_RA       15
    4544
    46 extern void alloc_window_and_flush(void);
     45static void alloc_window_and_flush(void)
     46{
     47        // FIXME TODO
     48}
    4749
    4850bool kernel_stack_trace_context_validate(stack_trace_context_t *ctx)
    4951{
    5052        uintptr_t kstack;
    51         uint32_t l1, l2;
     53        uint32_t l1
     54        uint32_t l2;
    5255       
    53         read_from_invalid(&kstack, &l1, &l2);
     56        read_from_invalid(&kstack, &l1, &l2);
    5457        kstack -= 128;
    55 
    56         if (THREAD && (ctx->fp == kstack))
     58       
     59        if ((THREAD) && (ctx->fp == kstack))
    5760                return false;
    58         return ctx->fp != 0;
     61       
     62        return (ctx->fp != 0);
    5963}
    6064
Note: See TracChangeset for help on using the changeset viewer.