Changeset 874621f in mainline for generic/src/ipc/sysipc.c


Ignore:
Timestamp:
2006-06-06T07:40:51Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0dbc4e7
Parents:
6f9a9bc
Message:

Added kernel circular buffer klog.
Added automatic killing of tasks raising inappropriate exceptions.
TODO Fix vsnprintf return value(and behaviour according to specs) and remove workaround in klog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/ipc/sysipc.c

    r6f9a9bc r874621f  
    554554
    555555/** Connect irq handler to task */
    556 __native sys_ipc_register_irq(__native irq, irq_code_t *ucode)
     556__native sys_ipc_register_irq(int irq, irq_code_t *ucode)
    557557{
    558558        if (!(cap_get(TASK) & CAP_IRQ_REG))
    559559                return EPERM;
    560560
    561         if (irq >= IRQ_COUNT)
     561        if (irq >= IRQ_COUNT || irq <= -IPC_IRQ_RESERVED_VIRTUAL)
    562562                return (__native) ELIMIT;
    563 
     563       
    564564        irq_ipc_bind_arch(irq);
    565565
     
    568568
    569569/* Disconnect irq handler from task */
    570 __native sys_ipc_unregister_irq(__native irq)
     570__native sys_ipc_unregister_irq(int irq)
    571571{
    572572        if (!(cap_get(TASK) & CAP_IRQ_REG))
    573573                return EPERM;
    574574
    575         if (irq >= IRQ_COUNT)
     575        if (irq >= IRQ_COUNT || irq <= -IPC_IRQ_RESERVED_VIRTUAL)
    576576                return (__native) ELIMIT;
    577577
Note: See TracChangeset for help on using the changeset viewer.