Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1212 → Rev 1211

/kernel/trunk/arch/mips32/src/ddi/ddi.c
30,9 → 30,6
#include <proc/task.h>
#include <arch/types.h>
#include <typedefs.h>
#include <security/cap.h>
#include <arch.h>
#include <arch/cp0.h>
 
/** Enable I/O space range for task.
*
48,17 → 45,3
{
return 0;
}
 
/** Enable/disable interrupts form syscall
*
* @param enable If non-zero, interrupts are enabled, otherwise disabled
* @param flags CP0 flags register
*/
__native ddi_int_control_arch(__native enable, __native *flags)
{
if (enable)
*flags |= cp0_status_ie_enabled_bit;
else
*flags &= ~cp0_status_ie_enabled_bit;
return 0;
}