Changeset 982f0fe in mainline for arch/ppc32/src/interrupt.c


Ignore:
Timestamp:
2006-06-01T10:21:00Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bd571f44
Parents:
80d31883
Message:

Added ability to process external interrupts to ppc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/src/interrupt.c

    r80d31883 r982f0fe  
    3333#include <time/clock.h>
    3434#include <ipc/sysipc.h>
     35#include <arch/drivers/pic.h>
    3536
    3637
     
    6566        /* TODO */
    6667}
     68
     69#include <print.h>
     70/** Handler of externul interrupts */
     71void extint_handler(int n, istate_t *istate)
     72{
     73        int inum;
     74
     75        while ((inum = pic_get_pending()) != -1) {
     76                exc_dispatch(inum+INT_OFFSET, istate);
     77                pic_ack_interrupt(inum);
     78        }
     79}
Note: See TracChangeset for help on using the changeset viewer.