Ignore:
File:
1 edited

Legend:

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

    ra000878c r98000fb  
    5353#include <ddi/irq.h>
    5454#include <symtab.h>
    55 #include <stacktrace.h>
    5655
    5756/*
     
    6564void decode_istate(int n, istate_t *istate)
    6665{
    67         const char *symbol = symtab_fmt_name_lookup(istate->rip);
    68        
     66        char *symbol;
     67
     68        symbol = symtab_fmt_name_lookup(istate->rip);
     69
    6970        printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__);
    7071        printf("%%rip: %#llx (%s)\n", istate->rip, symbol);
     
    7980            istate->r10, istate->r11);
    8081        printf("%%rsp=%#llx\n", &istate->stack[0]);
    81        
    82         stack_trace_istate(istate);
    8382}
    8483
     
    9796        decode_istate(n, istate);
    9897        panic("Unserviced interrupt.");
    99 }
    100 
    101 static void de_fault(int n, istate_t *istate)
    102 {
    103         fault_if_from_uspace(istate, "Divide error.");
    104         decode_istate(n, istate);
    105         panic("Divide error.");
    10698}
    10799
     
    208200        }
    209201       
    210         exc_register(0, "de_fault", (iroutine) de_fault);
    211202        exc_register(7, "nm_fault", (iroutine) nm_fault);
    212203        exc_register(12, "ss_fault", (iroutine) ss_fault);
Note: See TracChangeset for help on using the changeset viewer.