Subversion Repositories HelenOS

Rev

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

Rev 4132 Rev 4137
Line 51... Line 51...
51
#include <ipc/sysipc.h>
51
#include <ipc/sysipc.h>
52
#include <ipc/irq.h>
52
#include <ipc/irq.h>
53
#include <ipc/ipc.h>
53
#include <ipc/ipc.h>
54
#include <synch/spinlock.h>
54
#include <synch/spinlock.h>
55
#include <mm/tlb.h>
55
#include <mm/tlb.h>
56
 
-
 
57
#ifdef CONFIG_SYMTAB
-
 
58
#include <symtab.h>
56
#include <symtab.h>
59
#endif
-
 
60
 
57
 
61
#define VECTORS_64_BUNDLE   20
58
#define VECTORS_64_BUNDLE   20
62
#define VECTORS_16_BUNDLE   48
59
#define VECTORS_16_BUNDLE   48
63
#define VECTORS_16_BUNDLE_START 0x5000
60
#define VECTORS_16_BUNDLE_START 0x5000
64
#define VECTOR_MAX      0x7f00
61
#define VECTOR_MAX      0x7f00
Line 138... Line 135...
138
 
135
 
139
void dump_interrupted_context(istate_t *istate)
136
void dump_interrupted_context(istate_t *istate)
140
{
137
{
141
    char *ifa, *iipa, *iip;
138
    char *ifa, *iipa, *iip;
142
 
139
 
143
#ifdef CONFIG_SYMTAB
-
 
144
    ifa = get_symtab_entry(istate->cr_ifa);
140
    ifa = symtab_fmt_name_lookup(istate->cr_ifa);
145
    iipa = get_symtab_entry(istate->cr_iipa);
141
    iipa = symtab_fmt_name_lookup(istate->cr_iipa);
146
    iip = get_symtab_entry(istate->cr_iip);
142
    iip = symtab_fmt_name_lookup(istate->cr_iip);
147
#else
-
 
148
    ifa = iipa = iip = "n/a";
-
 
149
#endif
-
 
150
 
143
 
151
    putchar('\n');
144
    putchar('\n');
152
    printf("Interrupted context dump:\n");
145
    printf("Interrupted context dump:\n");
153
    printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp,
146
    printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp,
154
        istate->ar_bspstore);
147
        istate->ar_bspstore);