Changeset 214ec25c in mainline for kernel/arch/amd64/src/interrupt.c


Ignore:
Timestamp:
2010-06-11T16:07:21Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b584cd4
Parents:
b3b7e14
Message:

use unsigned integers for exception and interrupt numbers

File:
1 edited

Legend:

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

    rb3b7e14 r214ec25c  
    9292}
    9393
    94 static void null_interrupt(int n, istate_t *istate)
    95 {
    96         fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n);
     94static void null_interrupt(unsigned int n, istate_t *istate)
     95{
     96        fault_if_from_uspace(istate, "Unserviced interrupt: %u.", n);
    9797        decode_istate(n, istate);
    9898        panic("Unserviced interrupt.");
    9999}
    100100
    101 static void de_fault(int n, istate_t *istate)
     101static void de_fault(unsigned int n, istate_t *istate)
    102102{
    103103        fault_if_from_uspace(istate, "Divide error.");
     
    109109 *
    110110 */
    111 static void gp_fault(int n, istate_t *istate)
     111static void gp_fault(unsigned int n, istate_t *istate)
    112112{
    113113        if (TASK) {
     
    134134}
    135135
    136 static void ss_fault(int n, istate_t *istate)
     136static void ss_fault(unsigned int n, istate_t *istate)
    137137{
    138138        fault_if_from_uspace(istate, "Stack fault.");
     
    141141}
    142142
    143 static void nm_fault(int n, istate_t *istate)
     143static void nm_fault(unsigned int n, istate_t *istate)
    144144{
    145145#ifdef CONFIG_FPU_LAZY
     
    152152
    153153#ifdef CONFIG_SMP
    154 static void tlb_shootdown_ipi(int n, istate_t *istate)
     154static void tlb_shootdown_ipi(unsigned int n, istate_t *istate)
    155155{
    156156        trap_virtual_eoi();
     
    162162 *
    163163 */
    164 static void irq_interrupt(int n, istate_t *istate)
     164static void irq_interrupt(unsigned int n, istate_t *istate)
    165165{
    166166        ASSERT(n >= IVT_IRQBASE);
    167167       
    168         int inum = n - IVT_IRQBASE;
     168        unsigned int inum = n - IVT_IRQBASE;
    169169        bool ack = false;
    170170        ASSERT(inum < IRQ_COUNT);
     
    189189                 */
    190190#ifdef CONFIG_DEBUG
    191                 printf("cpu%d: spurious interrupt (inum=%d)\n", CPU->id, inum);
     191                printf("cpu%u: spurious interrupt (inum=%u)\n", CPU->id, inum);
    192192#endif
    193193        }
Note: See TracChangeset for help on using the changeset viewer.