Subversion Repositories HelenOS-historic

Rev

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

Rev 1051 Rev 1060
Line 43... Line 43...
43
#include <proc/thread.h>
43
#include <proc/thread.h>
44
 
44
 
45
void print_info_errcode(int n, istate_t *istate)
45
void print_info_errcode(int n, istate_t *istate)
46
{
46
{
47
    char *symbol;
47
    char *symbol;
48
    __u64 *x = &istate->stack[0];
48
/*  __u64 *x = &istate->stack[0]; */
49
 
49
 
50
    if (!(symbol=get_symtab_entry(istate->rip)))
50
    if (!(symbol=get_symtab_entry(istate->rip)))
51
        symbol = "";
51
        symbol = "";
52
 
52
 
53
    printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __FUNCTION__);
53
    printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __FUNCTION__);
Line 58... Line 58...
58
    printf("%%rdx=%Q, %%rsi=%Q, %%rdi=%Q\n",istate->rdx,istate->rsi,istate->rdi);
58
    printf("%%rdx=%Q, %%rsi=%Q, %%rdi=%Q\n",istate->rdx,istate->rsi,istate->rdi);
59
    printf("%%r8 =%Q, %%r9 =%Q, %%r10=%Q\n",istate->r8,istate->r9,istate->r10);
59
    printf("%%r8 =%Q, %%r9 =%Q, %%r10=%Q\n",istate->r8,istate->r9,istate->r10);
60
    printf("%%r11=%Q, %%r12=%Q, %%r13=%Q\n",istate->r11,istate->r12,istate->r13);
60
    printf("%%r11=%Q, %%r12=%Q, %%r13=%Q\n",istate->r11,istate->r12,istate->r13);
61
    printf("%%r14=%Q, %%r15=%Q, %%rsp=%Q\n",istate->r14,istate->r15,&istate->stack[0]);
61
    printf("%%r14=%Q, %%r15=%Q, %%rsp=%Q\n",istate->r14,istate->r15,&istate->stack[0]);
62
    printf("%%rbp=%Q\n",istate->rbp);
62
    printf("%%rbp=%Q\n",istate->rbp);
-
 
63
/*      
63
    printf("stack: %Q, %Q, %Q\n", x[5], x[6], x[7]);
64
    printf("stack: %Q, %Q, %Q\n", x[5], x[6], x[7]);
64
    printf("       %Q, %Q, %Q\n", x[8], x[9], x[10]);
65
    printf("       %Q, %Q, %Q\n", x[8], x[9], x[10]);
65
    printf("       %Q, %Q, %Q\n", x[11], x[12], x[13]);
66
    printf("       %Q, %Q, %Q\n", x[11], x[12], x[13]);
66
    printf("       %Q, %Q, %Q\n", x[14], x[15], x[16]);
67
    printf("       %Q, %Q, %Q\n", x[14], x[15], x[16]);
-
 
68
*/
67
}
69
}
68
 
70
 
69
/*
71
/*
70
 * Interrupt and exception dispatching.
72
 * Interrupt and exception dispatching.
71
 */
73
 */