Subversion Repositories HelenOS

Rev

Rev 4339 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4339 Rev 4346
Line 38... Line 38...
38
#include <arch/interrupt.h>
38
#include <arch/interrupt.h>
39
#include <interrupt.h>
39
#include <interrupt.h>
40
#include <arch/asm.h>
40
#include <arch/asm.h>
41
#include <arch/register.h>
41
#include <arch/register.h>
42
#include <debug.h>
42
#include <debug.h>
43
#include <symtab.h>
-
 
44
#include <print.h>
43
#include <print.h>
-
 
44
#include <symtab.h>
45
 
45
 
46
void dump_istate(istate_t *istate)
46
void dump_istate(istate_t *istate)
47
{
47
{
-
 
48
    char *tpcs, *tnpcs;
-
 
49
 
-
 
50
    tpcs = symtab_fmt_name_lookup(istate->tpc);
-
 
51
    tnpcs = symtab_fmt_name_lookup(istate->tnpc);
-
 
52
 
48
    printf("TSTATE=%#" PRIx64 "\n", istate->tstate);
53
    printf("TSTATE=%#" PRIx64 "\n", istate->tstate);
49
    printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, get_symtab_entry(istate->tpc));
54
    printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs);
50
    printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, get_symtab_entry(istate->tnpc));
55
    printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, tnpcs);
51
}
56
}
52
 
57
 
53
/** Handle instruction_access_exception. (0x8) */
58
/** Handle instruction_access_exception. (0x8) */
54
void instruction_access_exception(int n, istate_t *istate)
59
void instruction_access_exception(int n, istate_t *istate)
55
{
60
{