Changeset a35b458 in mainline for kernel/arch/mips32/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/mips32/src/asm.S

    r3061bc1 ra35b458  
    6262FUNCTION_BEGIN(memcpy_to_uspace)
    6363        move $t2, $a0  /* save dst */
    64        
     64
    6565        addiu $v0, $a1, 3
    6666        li $v1, -4  /* 0xfffffffffffffffc */
     
    6868        beq $a1, $v0, 3f
    6969        move $t0, $a0
    70        
     70
    7171        0:
    7272                beq $a2, $zero, 2f
    7373                move $a3, $zero
    74        
     74
    7575        1:
    7676                addu $v0, $a1, $a3
     
    8080                bne $a3, $a2, 1b
    8181                sb $a0, 0($v1)
    82        
     82
    8383        2:
    8484                jr $ra
    8585                move $v0, $t2
    86        
     86
    8787        3:
    8888                addiu $v0, $a0, 3
     
    9090                bne $a0, $v0, 0b
    9191                srl $t1, $a2, 2
    92                
     92
    9393                beq $t1, $zero, 5f
    9494                move $a3, $zero
    95                
     95
    9696                move $a3, $zero
    9797                move $a0, $zero
    98        
     98
    9999        4:
    100100                addu $v0, $a1, $a0
     
    105105                bne $a3, $t1, 4b
    106106                addiu $a0, $a0, 4
    107        
     107
    108108        5:
    109109                andi $a2, $a2, 0x3
    110110                beq $a2, $zero, 2b
    111111                nop
    112                
     112
    113113                sll $v0, $a3, 2
    114114                addu $t1, $v0, $t0
    115115                move $a3, $zero
    116116                addu $t0, $v0, $a1
    117        
     117
    118118        6:
    119119                addu $v0, $t0, $a3
     
    123123                bne $a3, $a2, 6b
    124124                sb $a0, 0($v1)
    125                
     125
    126126                jr $ra
    127127                move $v0, $t2
     
    188188        fpu_gp_save 30, $a0
    189189        fpu_gp_save 31, $a0
    190        
     190
    191191        fpu_ct_save 1, $a0
    192192        fpu_ct_save 2, $a0
     
    259259        fpu_gp_restore 30, $a0
    260260        fpu_gp_restore 31, $a0
    261        
     261
    262262        fpu_ct_restore 1, $a0
    263263        fpu_ct_restore 2, $a0
Note: See TracChangeset for help on using the changeset viewer.