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


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

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

    r3061bc1 ra35b458  
    4747        add %o0, 7, %g1
    4848        mov 0, %g3
    49        
     49
    5050        0:
    51        
     51
    5252                brz,pn %o2, 2f
    5353                mov 0, %g2
    54        
     54
    5555        1:
    56        
     56
    5757                lduba [%g3 + %o1] ASI_AIUS, %g1
    5858                add %g2, 1, %g2
     
    6161                bne,pt %xcc, 1b
    6262                mov %g2, %g3
    63        
     63
    6464        2:
    65        
     65
    6666                jmp %o7 + 8  /* exit point */
    6767                mov %o3, %o0
    68        
     68
    6969        3:
    70        
     70
    7171                and %g1, -8, %g1
    7272                cmp %o0, %g1
     
    7676                brz,pn %g4, 5f
    7777                mov 0, %g5
    78        
     78
    7979        4:
    80        
     80
    8181                sllx %g3, 3, %g2
    8282                add %g5, 1, %g3
     
    8686                bne,pt %xcc, 4b
    8787                stx %g1, [%o0 + %g2]
    88        
     88
    8989        5:
    90        
     90
    9191                and %o2, 7, %o2
    9292                brz,pn %o2, 2b
     
    9696                add %g1, %o1, %g4
    9797                mov 0, %g3
    98        
     98
    9999        6:
    100        
     100
    101101                lduba [%g2 + %g4] ASI_AIUS, %g1
    102102                stb %g1, [%g2 + %o0]
     
    105105                bne,pt %xcc, 6b
    106106                mov %g2, %g3
    107                
     107
    108108                jmp %o7 + 8  /* exit point */
    109109                mov %o3, %o0
     
    121121        add %o0, 7, %g1
    122122        mov 0, %g3
    123        
     123
    124124        0:
    125        
     125
    126126                brz,pn %o2, 2f
    127127                mov 0, %g2
    128        
     128
    129129        1:
    130        
     130
    131131                ldub [%g3 + %o1], %g1
    132132                add %g2, 1, %g2
     
    135135                bne,pt %xcc, 1b
    136136                mov %g2, %g3
    137        
     137
    138138        2:
    139        
     139
    140140                jmp %o7 + 8  /* exit point */
    141141                mov %o3, %o0
    142        
     142
    143143        3:
    144        
     144
    145145                and %g1, -8, %g1
    146146                cmp %o0, %g1
     
    150150                brz,pn %g4, 5f
    151151                mov 0, %g5
    152        
     152
    153153        4:
    154        
     154
    155155                sllx %g3, 3, %g2
    156156                add %g5, 1, %g3
     
    160160                bne,pt %xcc, 4b
    161161                stxa %g1, [%o0 + %g2] ASI_AIUS
    162        
     162
    163163        5:
    164        
     164
    165165                and %o2, 7, %o2
    166166                brz,pn %o2, 2b
     
    170170                add %g1, %o1, %g4
    171171                mov 0, %g3
    172        
     172
    173173        6:
    174        
     174
    175175                ldub [%g2 + %g4], %g1
    176176                stba %g1, [%g2 + %o0] ASI_AIUS
     
    179179                bne,pt %xcc, 6b
    180180                mov %g2, %g3
    181                
     181
    182182                jmp     %o7 + 8  /* exit point */
    183183                mov     %o3, %o0
Note: See TracChangeset for help on using the changeset viewer.