Changeset 7bb6b06 in mainline for kernel/arch/sparc64/src/asm.S


Ignore:
Timestamp:
2006-09-10T21:21:39Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a5b556
Parents:
208fa65
Message:

Small improvements here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/asm.S

    r208fa65 r7bb6b06  
    228228
    229229.macro WRITE_ALTERNATE_REGISTER reg, bit
    230         save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
    231         rdpr %pstate, %l0
    232         wrpr %l0, \bit, %pstate
    233         mov %i0, \reg
    234         wrpr %l0, 0, %pstate
    235         ret
    236         restore
     230        wrpr %g0, (\bit | PSTATE_PRIV_BIT), %pstate
     231        mov %o0, \reg
     232        retl
     233        wrpr %g0, PSTATE_PRIV_BIT, %pstate
    237234.endm
    238235
    239236.macro READ_ALTERNATE_REGISTER reg, bit
    240         save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
    241         rdpr %pstate, %l0
    242         wrpr %l0, \bit, %pstate
    243         mov \reg, %i0
    244         wrpr %l0, 0, %pstate
    245         ret
    246         restore
     237        wrpr %g0, (\bit | PSTATE_PRIV_BIT), %pstate
     238        mov \reg, %o0
     239        retl
     240        wrpr %g0, PSTATE_PRIV_BIT, %pstate
    247241.endm
    248242
     
    306300       
    307301        done                            ! jump to userspace
     302
Note: See TracChangeset for help on using the changeset viewer.