Changeset 214ec25c in mainline for kernel/arch/amd64/src


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

use unsigned integers for exception and interrupt numbers

Location:
kernel/arch/amd64/src
Files:
3 edited

Legend:

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

    rb3b7e14a r214ec25c  
    268268}
    269269
    270 static void debug_exception(int n __attribute__((unused)), istate_t *istate)
     270static void debug_exception(unsigned int n __attribute__((unused)), istate_t *istate)
    271271{
    272272        /* Set RF to restart the instruction  */
     
    293293
    294294#ifdef CONFIG_SMP
    295 static void debug_ipi(int n __attribute__((unused)),
     295static void debug_ipi(unsigned int n __attribute__((unused)),
    296296    istate_t *istate __attribute__((unused)))
    297297{
  • kernel/arch/amd64/src/interrupt.c

    rb3b7e14a 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        }
  • kernel/arch/amd64/src/mm/page.c

    rb3b7e14a r214ec25c  
    129129 * items.
    130130 */
    131 void ident_page_fault(int n, istate_t *istate)
     131void ident_page_fault(unsigned int n, istate_t *istate)
    132132{
    133133        uintptr_t page;
     
    177177
    178178
    179 void page_fault(int n, istate_t *istate)
     179void page_fault(unsigned int n, istate_t *istate)
    180180{
    181181        uintptr_t page;
Note: See TracChangeset for help on using the changeset viewer.