Subversion Repositories HelenOS

Rev

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

Rev 4016 Rev 4132
Line 42... Line 42...
42
#include <cpu.h>
42
#include <cpu.h>
43
#include <arch/asm.h>
43
#include <arch/asm.h>
44
#include <mm/tlb.h>
44
#include <mm/tlb.h>
45
#include <mm/as.h>
45
#include <mm/as.h>
46
#include <arch.h>
46
#include <arch.h>
47
#include <symtab.h>
-
 
48
#include <proc/thread.h>
47
#include <proc/thread.h>
49
#include <proc/task.h>
48
#include <proc/task.h>
50
#include <synch/spinlock.h>
49
#include <synch/spinlock.h>
51
#include <arch/ddi/ddi.h>
50
#include <arch/ddi/ddi.h>
52
#include <ipc/sysipc.h>
51
#include <ipc/sysipc.h>
53
#include <interrupt.h>
52
#include <interrupt.h>
54
#include <ddi/irq.h>
53
#include <ddi/irq.h>
55
 
54
 
-
 
55
#ifdef CONFIG_SYMTAB
-
 
56
#include <symtab.h>
-
 
57
#endif
-
 
58
 
56
/*
59
/*
57
 * Interrupt and exception dispatching.
60
 * Interrupt and exception dispatching.
58
 */
61
 */
59
 
62
 
60
void (* disable_irqs_function)(uint16_t irqmask) = NULL;
63
void (* disable_irqs_function)(uint16_t irqmask) = NULL;
61
void (* enable_irqs_function)(uint16_t irqmask) = NULL;
64
void (* enable_irqs_function)(uint16_t irqmask) = NULL;
62
void (* eoi_function)(void) = NULL;
65
void (* eoi_function)(void) = NULL;
63
 
66
 
64
void decode_istate(istate_t *istate)
67
void decode_istate(istate_t *istate)
65
{
68
{
66
    char *symbol = get_symtab_entry(istate->eip);
69
    char *symbol;
67
 
70
 
-
 
71
#ifdef CONFIG_SYMTAB
-
 
72
    symbol = get_symtab_entry(istate->eip);
68
    if (!symbol)
73
    if (!symbol)
69
        symbol = "";
74
        symbol = "";
-
 
75
#else
-
 
76
    symbol = "";
-
 
77
#endif
70
 
78
 
71
    if (CPU)
79
    if (CPU)
72
        printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id);
80
        printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id);
73
    else
81
    else
74
        printf("----------------EXCEPTION OCCURED----------------\n");
82
        printf("----------------EXCEPTION OCCURED----------------\n");