Changeset e8a0b90 in mainline


Ignore:
Timestamp:
2007-05-31T21:21:02Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8431986
Parents:
67f5fbd9
Message:

fix ICC compilation

Location:
kernel/arch/ia32/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/drivers/ega.c

    r67f5fbd9 re8a0b90  
    6767};
    6868
    69 void ega_move_cursor(void);
     69static void ega_move_cursor(void);
    7070
    7171void ega_init(void)
     
    120120}
    121121
    122 void ega_putchar(chardev_t *d, const char ch)
     122void ega_putchar(chardev_t *d __attribute__((unused)), const char ch)
    123123{
    124124        ipl_t ipl;
     
    153153{
    154154        outb(0x3d4, 0xe);
    155         outb(0x3d5, (ega_cursor >> 8) & 0xff);
     155        outb(0x3d5, (uint8_t) ((ega_cursor >> 8) & 0xff));
    156156        outb(0x3d4, 0xf);
    157         outb(0x3d5, ega_cursor & 0xff);
     157        outb(0x3d5, (uint8_t) (ega_cursor & 0xff));     
    158158}
    159159
  • kernel/arch/ia32/src/drivers/i8254.c

    r67f5fbd9 re8a0b90  
    6767}
    6868
    69 static void i8254_irq_handler(irq_t *irq, void *arg, ...)
     69static void i8254_irq_handler(irq_t *irq, void *arg __attribute__((unused)), ...)
    7070{
    7171        /*
     
    122122                /* will read both status and count */
    123123                outb(CLK_PORT4, 0xc2);
    124                 not_ok = (inb(CLK_PORT1)>>6)&1;
     124                not_ok = (uint8_t) ((inb(CLK_PORT1) >> 6) & 1);
    125125                t1 = inb(CLK_PORT1);
    126126                t1 |= inb(CLK_PORT1) << 8;
  • kernel/arch/ia32/src/drivers/i8259.c

    r67f5fbd9 re8a0b90  
    9696        if (irqmask & 0xff) {
    9797                x = inb(PIC_PIC0PORT2);
    98                 outb(PIC_PIC0PORT2, x & (~(irqmask & 0xff)));
     98                outb(PIC_PIC0PORT2, (uint8_t) (x & (~(irqmask & 0xff))));
    9999        }
    100100        if (irqmask >> 8) {
    101101                x = inb(PIC_PIC1PORT2);
    102                 outb(PIC_PIC1PORT2, x & (~(irqmask >> 8)));
     102                outb(PIC_PIC1PORT2, (uint8_t) (x & (~(irqmask >> 8))));
    103103        }
    104104}
     
    110110        if (irqmask & 0xff) {
    111111                x = inb(PIC_PIC0PORT2);
    112                 outb(PIC_PIC0PORT2, x | (irqmask & 0xff));
     112                outb(PIC_PIC0PORT2, (uint8_t) (x | (irqmask & 0xff)));
    113113        }
    114114        if (irqmask >> 8) {
    115115                x = inb(PIC_PIC1PORT2);
    116                 outb(PIC_PIC1PORT2, x | (irqmask >> 8));
     116                outb(PIC_PIC1PORT2, (uint8_t) (x | (irqmask >> 8)));
    117117        }
    118118}
     
    124124}
    125125
    126 void pic_spurious(int n, istate_t *istate)
     126void pic_spurious(int n __attribute__((unused)), istate_t *istate __attribute__((unused)))
    127127{
    128128#ifdef CONFIG_DEBUG
    129         printf("cpu%d: PIC spurious interrupt\n", CPU->id);
     129        printf("cpu%u: PIC spurious interrupt\n", CPU->id);
    130130#endif
    131131}
  • kernel/arch/ia32/src/ia32.c

    r67f5fbd9 re8a0b90  
    127127void arch_post_smp_init(void)
    128128{
     129        devno_t kbd = device_assign_devno();
     130        devno_t mouse = device_assign_devno();
    129131        /* keyboard controller */
    130         i8042_init(device_assign_devno(), IRQ_KBD, device_assign_devno(), IRQ_MOUSE);
     132        i8042_init(kbd, IRQ_KBD, mouse, IRQ_MOUSE);
    131133}
    132134
  • kernel/arch/ia32/src/interrupt.c

    r67f5fbd9 re8a0b90  
    7070
    7171        if (CPU)
    72                 printf("----------------EXCEPTION OCCURED (cpu%d)----------------\n", CPU->id);
     72                printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id);
    7373        else
    7474                printf("----------------EXCEPTION OCCURED----------------\n");
    7575               
    76         printf("%%eip: %#x (%s)\n",istate->eip,symbol);
    77         printf("ERROR_WORD=%#x\n", istate->error_word);
    78         printf("%%cs=%#x,flags=%#x\n", istate->cs, istate->eflags);
    79         printf("%%eax=%#x, %%ecx=%#x, %%edx=%#x, %%esp=%#x\n",  istate->eax,istate->ecx,istate->edx,&istate->stack[0]);
     76        printf("%%eip: %#lx (%s)\n", istate->eip, symbol);
     77        printf("ERROR_WORD=%#lx\n", istate->error_word);
     78        printf("%%cs=%#lx,flags=%#lx\n", istate->cs, istate->eflags);
     79        printf("%%eax=%#lx, %%ecx=%#lx, %%edx=%#lx, %%esp=%p\n", istate->eax, istate->ecx, istate->edx, &istate->stack[0]);
    8080#ifdef CONFIG_DEBUG_ALLREGS
    81         printf("%%esi=%#x, %%edi=%#x, %%ebp=%#x, %%ebx=%#x\n",  istate->esi,istate->edi,istate->ebp,istate->ebx);
    82 #endif
    83         printf("stack: %#x, %#x, %#x, %#x\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);
    84         printf("       %#x, %#x, %#x, %#x\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);
     81        printf("%%esi=%#lx, %%edi=%#lx, %%ebp=%#lx, %%ebx=%#lx\n", istate->esi, istate->edi, istate->ebp, istate->ebx);
     82#endif
     83        printf("stack: %#lx, %#lx, %#lx, %#lx\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);
     84        printf("       %#lx, %#lx, %#lx, %#lx\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);
    8585}
    8686
     
    103103
    104104/** General Protection Fault. */
    105 static void gp_fault(int n, istate_t *istate)
     105static void gp_fault(int n __attribute__((unused)), istate_t *istate)
    106106{
    107107        if (TASK) {
     
    130130}
    131131
    132 static void ss_fault(int n, istate_t *istate)
     132static void ss_fault(int n __attribute__((unused)), istate_t *istate)
    133133{
    134134        fault_if_from_uspace(istate, "stack fault");
     
    138138}
    139139
    140 static void simd_fp_exception(int n, istate_t *istate)
     140static void simd_fp_exception(int n __attribute__((unused)), istate_t *istate)
    141141{
    142142        uint32_t mxcsr;
    143143        asm (
    144144                "stmxcsr %0;\n"
    145                 :"=m"(mxcsr)
     145                : "=m" (mxcsr)
    146146        );
    147147        fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx",
    148             (unative_t)mxcsr);
    149 
    150         decode_istate(istate);
    151         printf("MXCSR: %#zx\n",(unative_t)(mxcsr));
     148            (unative_t) mxcsr);
     149
     150        decode_istate(istate);
     151        printf("MXCSR: %#lx\n", mxcsr);
    152152        panic("SIMD FP exception(19)\n");
    153153}
    154154
    155 static void nm_fault(int n, istate_t *istate)
     155static void nm_fault(int n __attribute__((unused)), istate_t *istate __attribute__((unused)))
    156156{
    157157#ifdef CONFIG_FPU_LAZY     
     
    164164
    165165#ifdef CONFIG_SMP
    166 static void tlb_shootdown_ipi(int n, istate_t *istate)
     166static void tlb_shootdown_ipi(int n __attribute__((unused)), istate_t *istate __attribute__((unused)))
    167167{
    168168        trap_virtual_eoi();
     
    172172
    173173/** Handler of IRQ exceptions */
    174 static void irq_interrupt(int n, istate_t *istate)
     174static void irq_interrupt(int n, istate_t *istate __attribute__((unused)))
    175175{
    176176        ASSERT(n >= IVT_IRQBASE);
     
    199199                 */
    200200#ifdef CONFIG_DEBUG
    201                 printf("cpu%d: spurious interrupt (inum=%d)\n", CPU->id, inum);
     201                printf("cpu%u: spurious interrupt (inum=%d)\n", CPU->id, inum);
    202202#endif
    203203        }
  • kernel/arch/ia32/src/mm/tlb.c

    r67f5fbd9 re8a0b90  
    4949 * @param asid This parameter is ignored as the architecture doesn't support it.
    5050 */
    51 void tlb_invalidate_asid(asid_t asid)
     51void tlb_invalidate_asid(asid_t asid __attribute__((unused)))
    5252{
    5353        tlb_invalidate_all();
     
    6060 * @param cnt Number of entries to invalidate.
    6161 */
    62 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt)
     62void tlb_invalidate_pages(asid_t asid __attribute__((unused)), uintptr_t page, count_t cnt)
    6363{
    6464        unsigned int i;
Note: See TracChangeset for help on using the changeset viewer.