Changeset 738ad2e in mainline for arch/mips32
- Timestamp:
- 2006-05-02T18:19:43Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 281224a
- Parents:
- e34a141
- Location:
- arch/mips32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/ddi/ddi.c
re34a141 r738ad2e 49 49 return 0; 50 50 } 51 52 /** Enable/disable interrupts for syscall53 *54 * @param enable If non-zero, interrupts are enabled, otherwise disabled55 * @param flags CP0 status register56 */57 __native ddi_int_control_arch(__native enable, __native *flags)58 {59 if (enable)60 *flags |= cp0_status_ie_enabled_bit;61 else62 *flags &= ~cp0_status_ie_enabled_bit;63 return 0;64 } -
arch/mips32/src/start.S
re34a141 r738ad2e 254 254 mtc0 $t0, $status 255 255 256 li $t4, 2 # SYS_INT_CONTROL257 beq $t4, $v0, sysc_int_control258 nop259 260 256 # CALL Syscall handler 261 257 jal syscall_handler 262 258 sw $v0, SS_ARG4($sp) # save v0 - arg4 to stack 263 259 264 sysc_exit:265 260 # restore status 266 261 mfc0 $t0, $status … … 282 277 283 278 eret 284 285 sysc_int_control: 286 jal ddi_int_control 287 addi $a1, $sp, SS_STATUS 288 289 j sysc_exit 290 nop 291 279 292 280 tlb_refill_handler: 293 281 KERNEL_STACK_TO_K0
Note:
See TracChangeset
for help on using the changeset viewer.