Subversion Repositories HelenOS

Rev

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

Rev 117 Rev 125
Line 82... Line 82...
82
    trap_register(VECTOR_CLK, l_apic_timer_interrupt);
82
    trap_register(VECTOR_CLK, l_apic_timer_interrupt);
83
    for (i=1; i<16; i++) {
83
    for (i=1; i<16; i++) {
84
        int pin;
84
        int pin;
85
   
85
   
86
        if ((pin = mps_irq_to_pin(i)) != -1)
86
        if ((pin = mps_irq_to_pin(i)) != -1)
87
                io_apic_change_ioredtbl(pin,0xf,IVT_IRQBASE+i,LOPRI);
87
        io_apic_change_ioredtbl(pin,0xf,IVT_IRQBASE+i,LOPRI);
88
    }
88
    }
89
   
89
   
90
 
90
 
91
    /*
91
    /*
92
     * Ensure that io_apic has unique ID.
92
     * Ensure that io_apic has unique ID.
Line 134... Line 134...
134
        printf("Send Illegal Vector\n");
134
        printf("Send Illegal Vector\n");
135
    if ((esr>>6) & 1)
135
    if ((esr>>6) & 1)
136
        printf("Received Illegal Vector\n");
136
        printf("Received Illegal Vector\n");
137
    if ((esr>>7) & 1)
137
    if ((esr>>7) & 1)
138
        printf("Illegal Register Address\n");
138
        printf("Illegal Register Address\n");
139
   
139
 
140
    return !esr;
140
    return !esr;
141
}
141
}
142
 
142
 
143
/*
143
/*
144
 * Send all CPUs excluding CPU IPI vector.
144
 * Send all CPUs excluding CPU IPI vector.