Changeset a3ac9a7 in mainline for generic


Ignore:
Timestamp:
2005-12-10T12:12:09Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e716a59
Parents:
208189f
Message:

Small debug changes.

Location:
generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/include/debug.h

    r208189f ra3ac9a7  
    3131
    3232#include <panic.h>
     33#include <arch/debug.h>
     34#include <arch.h>
    3335
     36#ifndef CALLER
     37/**  Default (returns 0) macro for getting address of calling function
     38 *   @param x First argument of the called function
     39 */
     40#  define CALLER(x)       ((__address *) 0)
     41#endif
     42
     43#ifndef HERE
     44/** Current Instruction Pointer address */
     45#  define HERE ((__address *)0)
     46#endif
    3447
    3548/** Debugging ASSERT macro
  • generic/src/interrupt/interrupt.c

    r208189f ra3ac9a7  
    112112
    113113static cmd_info_t exc_info = {
    114         .name = "exc_print",
     114        .name = "pexc",
    115115        .description = "Print exception table",
    116116        .func = exc_print_cmd,
  • generic/src/synch/spinlock.c

    r208189f ra3ac9a7  
    6464{
    6565        count_t i = 0;
    66         __address caller = ((__address *) &sl)[-1];
     66        __address caller = CALLER(sl);
    6767        char *symbol;
    6868        bool deadlock_reported = false;
Note: See TracChangeset for help on using the changeset viewer.