Ignore:
File:
1 edited

Legend:

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

    r4b0206c r9d58539  
    3535#include <arch/interrupt.h>
    3636#include <print.h>
    37 #include <log.h>
    3837#include <debug.h>
    3938#include <panic.h>
     
    4544#include <mm/as.h>
    4645#include <arch.h>
     46#include <arch/asm.h>
    4747#include <proc/scheduler.h>
    4848#include <proc/thread.h>
     
    5454#include <symtab.h>
    5555#include <stacktrace.h>
    56 #include <smp/smp_call.h>
    5756
    5857/*
     
    6766void istate_decode(istate_t *istate)
    6867{
    69         log_printf("cs =%0#18" PRIx64 "\trip=%0#18" PRIx64 "\t"
     68        printf("cs =%0#18" PRIx64 "\trip=%0#18" PRIx64 "\t"
    7069            "rfl=%0#18" PRIx64 "\terr=%0#18" PRIx64 "\n",
    7170            istate->cs, istate->rip, istate->rflags, istate->error_word);
    7271       
    7372        if (istate_from_uspace(istate))
    74                 log_printf("ss =%0#18" PRIx64 "\n", istate->ss);
    75        
    76         log_printf("rax=%0#18" PRIx64 "\trbx=%0#18" PRIx64 "\t"
     73                printf("ss =%0#18" PRIx64 "\n", istate->ss);
     74       
     75        printf("rax=%0#18" PRIx64 "\trbx=%0#18" PRIx64 "\t"
    7776            "rcx=%0#18" PRIx64 "\trdx=%0#18" PRIx64 "\n",
    7877            istate->rax, istate->rbx, istate->rcx, istate->rdx);
    7978       
    80         log_printf("rsi=%0#18" PRIx64 "\trdi=%0#18" PRIx64 "\t"
     79        printf("rsi=%0#18" PRIx64 "\trdi=%0#18" PRIx64 "\t"
    8180            "rbp=%0#18" PRIx64 "\trsp=%0#18" PRIx64 "\n",
    8281            istate->rsi, istate->rdi, istate->rbp,
     
    8483            (uintptr_t) &istate->rsp);
    8584       
    86         log_printf("r8 =%0#18" PRIx64 "\tr9 =%0#18" PRIx64 "\t"
     85        printf("r8 =%0#18" PRIx64 "\tr9 =%0#18" PRIx64 "\t"
    8786            "r10=%0#18" PRIx64 "\tr11=%0#18" PRIx64 "\n",
    8887            istate->r8, istate->r9, istate->r10, istate->r11);
    8988       
    90         log_printf("r12=%0#18" PRIx64 "\tr13=%0#18" PRIx64 "\t"
     89        printf("r12=%0#18" PRIx64 "\tr13=%0#18" PRIx64 "\t"
    9190            "r14=%0#18" PRIx64 "\tr15=%0#18" PRIx64 "\n",
    9291            istate->r12, istate->r13, istate->r14, istate->r15);
     
    162161        tlb_shootdown_ipi_recv();
    163162}
    164 
    165 static void arch_smp_call_ipi_recv(unsigned int n, istate_t *istate)
    166 {
    167         trap_virtual_eoi();
    168         smp_call_ipi_recv();
    169 }
    170163#endif
    171164
     
    200193                 */
    201194#ifdef CONFIG_DEBUG
    202                 log(LF_ARCH, LVL_DEBUG, "cpu%u: spurious interrupt (inum=%u)",
    203                     CPU->id, inum);
     195                printf("cpu%u: spurious interrupt (inum=%u)\n", CPU->id, inum);
    204196#endif
    205197        }
     
    222214        }
    223215       
    224         exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault);
    225         exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault);
    226         exc_register(VECTOR_SS, "ss_fault", true, (iroutine_t) ss_fault);
    227         exc_register(VECTOR_GP, "gp_fault", true, (iroutine_t) gp_fault);
     216        exc_register(0, "de_fault", true, (iroutine_t) de_fault);
     217        exc_register(7, "nm_fault", true, (iroutine_t) nm_fault);
     218        exc_register(12, "ss_fault", true, (iroutine_t) ss_fault);
     219        exc_register(13, "gp_fault", true, (iroutine_t) gp_fault);
    228220       
    229221#ifdef CONFIG_SMP
    230222        exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
    231223            (iroutine_t) tlb_shootdown_ipi);
    232         exc_register(VECTOR_SMP_CALL_IPI, "smp_call", true,
    233                 (iroutine_t) arch_smp_call_ipi_recv);
    234224#endif
    235225}
Note: See TracChangeset for help on using the changeset viewer.