Changeset e2b762ec in mainline for kernel/generic/src/synch/spinlock.c


Ignore:
Timestamp:
2009-03-16T21:58:05Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f36c061
Parents:
d9167a1c
Message:

Make kernel symbol information optional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/spinlock.c

    rd9167a1c re2b762ec  
    4343#include <print.h>
    4444#include <debug.h>
     45
     46#ifdef CONFIG_SYMTAB
    4547#include <symtab.h>
     48#endif
    4649
    4750#ifdef CONFIG_FB
     
    7780{
    7881        count_t i = 0;
     82        bool deadlock_reported = false;
     83#ifdef CONFIG_SYMTAB
    7984        char *symbol;
    80         bool deadlock_reported = false;
     85#endif
    8186
    8287        preemption_disable();
     
    109114                        printf("cpu%u: looping on spinlock %" PRIp ":%s, caller=%" PRIp,
    110115                                CPU->id, sl, sl->name, CALLER);
     116#ifdef CONFIG_SYMTAB
    111117                        symbol = get_symtab_entry(CALLER);
    112118                        if (symbol)
    113119                                printf("(%s)", symbol);
     120#endif
    114121                        printf("\n");
    115122                        i = 0;
Note: See TracChangeset for help on using the changeset viewer.