Changeset c7c0b89b in mainline for arch/amd64/src/ddi/ddi.c


Ignore:
Timestamp:
2006-04-22T18:05:16Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
613bc54
Parents:
68091bd
Message:

Added uspace call to enable/disable interrupts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/ddi/ddi.c

    r68091bd rc7c0b89b  
    3535#include <arch/pm.h>
    3636#include <errno.h>
     37#include <arch/cpu.h>
    3738
    3839/** Enable I/O space range for task.
     
    9192        return 0;
    9293}
     94
     95/** Enable/disable interrupts form syscall
     96 *
     97 * @param enable If non-zero, interrupts are enabled, otherwise disabled
     98 * @param flags CP0 flags register
     99 */
     100__native ddi_int_control_arch(__native enable, __native *flags)
     101{
     102        if (enable)
     103                *flags |= RFLAGS_IF;
     104        else
     105                *flags &= ~RFLAGS_IF;
     106        return 0;
     107}
Note: See TracChangeset for help on using the changeset viewer.