Changeset 0f250f9 in mainline for arch/ia64/src/asm.S


Ignore:
Timestamp:
2006-03-17T18:07:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69f293e
Parents:
6c6a19e6
Message:

Improved uspace threads.
ia64 needs fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/src/asm.S

    r6c6a19e6 r0f250f9  
    5555 * @param in1 Userspace stack pointer address.
    5656 * @param in2 Userspace register stack pointer address.
    57  * @param in3 Value to be stored in IPSR.
    58  * @param in4 Value to be stored in RSC.
     57 * @param in3 Userspace address of thread uspace_arg_t structure.
     58 * @param in4 Value to be stored in IPSR.
     59 * @param in5 Value to be stored in RSC.
    5960 */
    6061.global switch_to_userspace
    6162switch_to_userspace:
    62         alloc loc0 = ar.pfs, 5, 3, 0, 0
     63        alloc loc0 = ar.pfs, 6, 3, 0, 0
    6364        rsm (PSR_IC_MASK | PSR_I_MASK)          /* disable interruption collection and interrupts */
    6465        srlz.d ;;
    6566        srlz.i ;;
    6667       
    67         mov cr.ipsr = in3
     68        mov cr.ipsr = in4
    6869        mov cr.iip = in0
    6970        mov r12 = in1
     
    8586       
    8687        mov ar.bspstore = in2 ;;
    87         mov ar.rsc = in4 ;;
     88        mov ar.rsc = in5 ;;
     89       
     90        mov r8 = in3
    8891       
    8992        rfi ;;
Note: See TracChangeset for help on using the changeset viewer.