Changeset 5626277 in mainline for arch/amd64/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/amd64/src/interrupt.c

    r407862e r5626277  
    4545#include <synch/spinlock.h>
    4646#include <arch/ddi/ddi.h>
     47#include <interrupt.h>
     48#include <ipc/sysipc.h>
    4749
    4850void print_info_errcode(int n, istate_t *istate)
     
    154156
    155157}
     158
     159static void ipc_int(int n, istate_t *istate)
     160{
     161        trap_virtual_eoi();
     162        ipc_irq_send_notif(n-IVT_IRQBASE);
     163}
     164
     165
     166/* Reregister irq to be IPC-ready */
     167void irq_ipc_bind_arch(__native irq)
     168{
     169        if (irq == IRQ_CLK)
     170                return;
     171        exc_register(IVT_IRQBASE+irq, "ipc_int", ipc_int);
     172}
Note: See TracChangeset for help on using the changeset viewer.