Changeset 5626277 in mainline for arch/ia32/src/interrupt.c


Ignore:
Timestamp:
2006-04-29T22:12:40Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
51a7dc1
Parents:
407862e
Message:

Added support for IRQ notifiactions.

  • seems to work correctly on ia32, amd64
  • the mips kbd probably lowers interrupts when the char is read from the port, we will have to find a way how to deal with it.
File:
1 edited

Legend:

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

    r407862e r5626277  
    4444#include <synch/spinlock.h>
    4545#include <arch/ddi/ddi.h>
     46#include <ipc/sysipc.h>
     47#include <interrupt.h>
    4648
    4749/*
     
    185187
    186188}
     189
     190static void ipc_int(int n, istate_t *istate)
     191{
     192        trap_virtual_eoi();
     193        ipc_irq_send_notif(n-IVT_IRQBASE);
     194}
     195
     196
     197/* Reregister irq to be IPC-ready */
     198void irq_ipc_bind_arch(__native irq)
     199{
     200        if (irq == IRQ_CLK)
     201                return;
     202        exc_register(IVT_IRQBASE+irq, "ipc_int", ipc_int);
     203}
Note: See TracChangeset for help on using the changeset viewer.