Changeset 8e0eb63 in mainline for arch/amd64/src/interrupt.c


Ignore:
Timestamp:
2006-03-15T18:01:43Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e1c942
Parents:
2f7342d
Message:

Hopefully final version of interrupt handlers for amd64 and ia32.
amd64 has been especially tricky to debug.
Error code detection is now done in compile time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/interrupt.c

    r2f7342d r8e0eb63  
    4848        __u64 *x = &istate->stack[0];
    4949
    50         if (!(symbol=get_symtab_entry(x[1])))
     50        if (!(symbol=get_symtab_entry(istate->rip)))
    5151                symbol = "";
    5252
    53         printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n,__FUNCTION__);
    54         printf("%%rip: %Q (%s)\n",istate->stack[1],symbol);
    55         printf("ERROR_WORD=%Q\n", istate->stack[0]);
    56         printf("%%rcs=%Q,flags=%Q, %%cr0=%Q\n", istate->stack[2],
    57                istate->stack[3],read_cr0());
     53        printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __FUNCTION__);
     54        printf("%%rip: %Q (%s)\n",istate->rip, symbol);
     55        printf("ERROR_WORD=%Q\n", istate->error_word);
     56        printf("%%rcs=%Q, flags=%Q, %%cr0=%Q\n", istate->cs, istate->rflags,read_cr0());
    5857        printf("%%rax=%Q, %%rbx=%Q, %%rcx=%Q\n",istate->rax,istate->rbx,istate->rcx);
    5958        printf("%%rdx=%Q, %%rsi=%Q, %%rdi=%Q\n",istate->rdx,istate->rsi,istate->rdi);
     
    7877void null_interrupt(int n, istate_t *istate)
    7978{
    80         printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n,__FUNCTION__); \
    81         printf("stack: %X, %X, %X, %X\n", istate->stack[0], istate->stack[1],
    82                istate->stack[2], istate->stack[3]);
     79        print_info_errcode(n, istate);
    8380        panic("unserviced interrupt\n");
    8481}
Note: See TracChangeset for help on using the changeset viewer.