Changeset 738ad2e in mainline for arch/mips32


Ignore:
Timestamp:
2006-05-02T18:19:43Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
281224a
Parents:
e34a141
Message:

Changed interrupt_control to preemption_control.

Location:
arch/mips32/src
Files:
2 edited

Legend:

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

    re34a141 r738ad2e  
    4949        return 0;
    5050}
    51 
    52 /** Enable/disable interrupts for syscall
    53  *
    54  * @param enable If non-zero, interrupts are enabled, otherwise disabled
    55  * @param flags CP0 status 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 }
  • arch/mips32/src/start.S

    re34a141 r738ad2e  
    254254        mtc0 $t0, $status
    255255
    256         li $t4, 2                   # SYS_INT_CONTROL
    257         beq $t4, $v0, sysc_int_control
    258         nop
    259        
    260256        # CALL Syscall handler
    261257        jal syscall_handler
    262258        sw $v0, SS_ARG4($sp)        # save v0 - arg4 to stack
    263259
    264 sysc_exit:     
    265260        # restore status
    266261        mfc0 $t0, $status
     
    282277       
    283278        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               
    292280tlb_refill_handler:
    293281        KERNEL_STACK_TO_K0
Note: See TracChangeset for help on using the changeset viewer.