Changeset c7c0b89b in mainline for arch/mips32/src/ddi/ddi.c
- Timestamp:
- 2006-04-22T18:05:16Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 613bc54
- Parents:
- 68091bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/ddi/ddi.c
r68091bd rc7c0b89b 31 31 #include <arch/types.h> 32 32 #include <typedefs.h> 33 #include <security/cap.h> 34 #include <arch.h> 35 #include <arch/cp0.h> 33 36 34 37 /** Enable I/O space range for task. … … 46 49 return 0; 47 50 } 51 52 /** Enable/disable interrupts form syscall 53 * 54 * @param enable If non-zero, interrupts are enabled, otherwise disabled 55 * @param flags CP0 flags register 56 */ 57 __native ddi_int_control_arch(__native enable, __native *flags) 58 { 59 if (enable) 60 *flags |= cp0_status_ie_enabled_bit; 61 else 62 *flags &= ~cp0_status_ie_enabled_bit; 63 return 0; 64 }
Note:
See TracChangeset
for help on using the changeset viewer.