Changeset 32e8cd1 in mainline for kernel/arch/sparc32/src/context.S


Ignore:
Timestamp:
2013-12-28T17:16:44Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1023bcb
Parents:
f6f22cdb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/context.S

    rf6f22cdb r32e8cd1  
    4545        # them there even if e.g. the thread is migrated to another processor.
    4646        #
    47         #flushw
    48                 mov 7, %g1
    49 1:      subcc %g1, 1, %g1
    50         bg 1b
    51          save %sp, -64, %sp
    52 
     47       
     48        ## flushw
    5349        mov 7, %g1
    54 1:      subcc %g1, 1, %g1
    55         bg 1b
    56          restore
    57 
     50        1:
     51                subcc %g1, 1, %g1
     52                bg 1b
     53       
     54        save %sp, -64, %sp
     55       
     56        mov 7, %g1
     57        1:
     58                subcc %g1, 1, %g1
     59                bg 1b
     60       
     61        restore
     62       
    5863        CONTEXT_SAVE_ARCH_CORE %o0
    5964        retl
     
    7075        # spills.
    7176        #
    72         #rdpr %pstate, %l0
    73         #andn %l0, PSTATE_IE_BIT, %l1
    74         #wrpr %l1, %pstate
    75         #wrpr %g0, 0, %canrestore
    76         #wrpr %g0, 0, %otherwin
    77         #wrpr %g0, NWINDOWS - 2, %cansave
    78         #wrpr %l0, %pstate
     77       
     78        ## rdpr %pstate, %l0
     79        ## andn %l0, PSTATE_IE_BIT, %l1
     80        ## wrpr %l1, %pstate
     81        ## wrpr %g0, 0, %canrestore
     82        ## wrpr %g0, 0, %otherwin
     83        ## wrpr %g0, NWINDOWS - 2, %cansave
     84        ## wrpr %l0, %pstate
     85       
    7986        mov 7, %g1
    80 1:      subcc %g1, 1, %g1
    81         bg 1b
    82          save %sp, -64, %sp
    83 
     87        1:
     88                subcc %g1, 1, %g1
     89                bg 1b
     90       
     91        save %sp, -64, %sp
     92       
    8493        mov 7, %g1
    85 1:      subcc %g1, 1, %g1
    86         bg 1b
    87          restore
    88 
     94        1:
     95                subcc %g1, 1, %g1
     96                bg 1b
     97       
     98        restore
     99       
    89100        CONTEXT_RESTORE_ARCH_CORE %o0
    90101        retl
Note: See TracChangeset for help on using the changeset viewer.