Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/drivers/pic.c

    rc2417bc rffe276f  
    3232/** @file
    3333 */
    34 
    3534
    3635#include <arch/drivers/pic.h>
     
    7978}
    8079
    81 /** Return number of pending interrupt */
    82 int pic_get_pending(void)
     80/** Return number of pending interrupts
     81 *
     82 */
     83uint8_t pic_get_pending(void)
    8384{
    8485        if (pic) {
    85                 int pending;
     86                uint32_t pending;
    8687               
    8788                pending = pic[PIC_PENDING_LOW];
    88                 if (pending)
     89                if (pending != 0)
    8990                        return fnzb32(pending);
    9091               
    9192                pending = pic[PIC_PENDING_HIGH];
    92                 if (pending)
     93                if (pending != 0)
    9394                        return fnzb32(pending) + 32;
    9495        }
    9596       
    96         return -1;
     97        return 255;
    9798}
    9899
Note: See TracChangeset for help on using the changeset viewer.