Subversion Repositories HelenOS

Rev

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

Rev 4343 Rev 4346
Line 36... Line 36...
36
#include <arch/interrupt.h>
36
#include <arch/interrupt.h>
37
#include <interrupt.h>
37
#include <interrupt.h>
38
#include <ddi/irq.h>
38
#include <ddi/irq.h>
39
#include <panic.h>
39
#include <panic.h>
40
#include <print.h>
40
#include <print.h>
41
#include <symtab.h>
-
 
42
#include <debug.h>
41
#include <debug.h>
43
#include <console/console.h>
42
#include <console/console.h>
44
#include <arch/types.h>
43
#include <arch/types.h>
45
#include <arch/asm.h>
44
#include <arch/asm.h>
46
#include <arch/barrier.h>
45
#include <arch/barrier.h>
Line 52... Line 51...
52
#include <ipc/sysipc.h>
51
#include <ipc/sysipc.h>
53
#include <ipc/irq.h>
52
#include <ipc/irq.h>
54
#include <ipc/ipc.h>
53
#include <ipc/ipc.h>
55
#include <synch/spinlock.h>
54
#include <synch/spinlock.h>
56
#include <mm/tlb.h>
55
#include <mm/tlb.h>
-
 
56
#include <symtab.h>
57
 
57
 
58
#define VECTORS_64_BUNDLE   20
58
#define VECTORS_64_BUNDLE   20
59
#define VECTORS_16_BUNDLE   48
59
#define VECTORS_16_BUNDLE   48
60
#define VECTORS_16_BUNDLE_START 0x5000
60
#define VECTORS_16_BUNDLE_START 0x5000
61
#define VECTOR_MAX      0x7f00
61
#define VECTOR_MAX      0x7f00
Line 135... Line 135...
135
 
135
 
136
void dump_interrupted_context(istate_t *istate)
136
void dump_interrupted_context(istate_t *istate)
137
{
137
{
138
    char *ifa, *iipa, *iip;
138
    char *ifa, *iipa, *iip;
139
 
139
 
140
    ifa = get_symtab_entry(istate->cr_ifa);
140
    ifa = symtab_fmt_name_lookup(istate->cr_ifa);
141
    iipa = get_symtab_entry(istate->cr_iipa);
141
    iipa = symtab_fmt_name_lookup(istate->cr_iipa);
142
    iip = get_symtab_entry(istate->cr_iip);
142
    iip = symtab_fmt_name_lookup(istate->cr_iip);
143
 
143
 
144
    putchar('\n');
144
    putchar('\n');
145
    printf("Interrupted context dump:\n");
145
    printf("Interrupted context dump:\n");
146
    printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp,
146
    printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp,
147
        istate->ar_bspstore);
147
        istate->ar_bspstore);