Ignore:
File:
1 edited

Legend:

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

    rffe276f rc2417bc  
    3232/** @file
    3333 */
     34
    3435
    3536#include <arch/drivers/pic.h>
     
    7879}
    7980
    80 /** Return number of pending interrupts
    81  *
    82  */
    83 uint8_t pic_get_pending(void)
     81/** Return number of pending interrupt */
     82int pic_get_pending(void)
    8483{
    8584        if (pic) {
    86                 uint32_t pending;
     85                int pending;
    8786               
    8887                pending = pic[PIC_PENDING_LOW];
    89                 if (pending != 0)
     88                if (pending)
    9089                        return fnzb32(pending);
    9190               
    9291                pending = pic[PIC_PENDING_HIGH];
    93                 if (pending != 0)
     92                if (pending)
    9493                        return fnzb32(pending) + 32;
    9594        }
    9695       
    97         return 255;
     96        return -1;
    9897}
    9998
Note: See TracChangeset for help on using the changeset viewer.