Subversion Repositories HelenOS

Rev

Rev 4085 | Rev 4137 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4085 Rev 4132
Line 43... Line 43...
43
#include <console/kconsole.h>
43
#include <console/kconsole.h>
44
#include <console/console.h>
44
#include <console/console.h>
45
#include <console/cmd.h>
45
#include <console/cmd.h>
46
#include <panic.h>
46
#include <panic.h>
47
#include <print.h>
47
#include <print.h>
-
 
48
 
-
 
49
#ifdef CONFIG_SYMTAB
48
#include <symtab.h>
50
#include <symtab.h>
-
 
51
#endif
49
 
52
 
50
static struct {
53
static struct {
51
    const char *name;
54
    const char *name;
52
    iroutine f;
55
    iroutine f;
53
} exc_table[IVT_ITEMS];
56
} exc_table[IVT_ITEMS];
Line 128... Line 131...
128
    printf("Exc Description          Handler            Symbol\n");
131
    printf("Exc Description          Handler            Symbol\n");
129
    printf("--- -------------------- ------------------ --------\n");
132
    printf("--- -------------------- ------------------ --------\n");
130
#endif
133
#endif
131
   
134
   
132
    for (i = 0; i < IVT_ITEMS; i++) {
135
    for (i = 0; i < IVT_ITEMS; i++) {
-
 
136
#ifdef CONFIG_SYMTAB
133
        symbol = get_symtab_entry((unative_t) exc_table[i].f);
137
        symbol = get_symtab_entry((unative_t) exc_table[i].f);
134
        if (!symbol)
138
        if (!symbol)
135
            symbol = "not found";
139
            symbol = "not found";
-
 
140
#else
-
 
141
        symbol = "n/a";
-
 
142
#endif
136
 
143
 
137
#ifdef __32_BITS__
144
#ifdef __32_BITS__
138
        printf("%-3u %-20s %10p %s\n", i + IVT_FIRST, exc_table[i].name,
145
        printf("%-3u %-20s %10p %s\n", i + IVT_FIRST, exc_table[i].name,
139
            exc_table[i].f, symbol);
146
            exc_table[i].f, symbol);
140
#endif
147
#endif