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

    r3061bc1 ra35b458  
    5555        sw $a3, 0($a0)
    5656#endif
    57        
     57
    5858        /*
    5959         * Setup CPU map (on msim this code
     
    6262         */
    6363        la $a0, PA2KA(CPUMAP_OFFSET)
    64        
     64
    6565        sw $zero, 0($a0)
    6666        sw $zero, 4($a0)
    6767        sw $zero, 8($a0)
    6868        sw $zero, 12($a0)
    69        
     69
    7070        sw $zero, 16($a0)
    7171        sw $zero, 20($a0)
    7272        sw $zero, 24($a0)
    7373        sw $zero, 28($a0)
    74        
     74
    7575        sw $zero, 32($a0)
    7676        sw $zero, 36($a0)
    7777        sw $zero, 40($a0)
    7878        sw $zero, 44($a0)
    79        
     79
    8080        sw $zero, 48($a0)
    8181        sw $zero, 52($a0)
    8282        sw $zero, 56($a0)
    8383        sw $zero, 60($a0)
    84        
     84
    8585        sw $zero, 64($a0)
    8686        sw $zero, 68($a0)
    8787        sw $zero, 72($a0)
    8888        sw $zero, 76($a0)
    89        
     89
    9090        sw $zero, 80($a0)
    9191        sw $zero, 84($a0)
    9292        sw $zero, 88($a0)
    9393        sw $zero, 92($a0)
    94        
     94
    9595        sw $zero, 96($a0)
    9696        sw $zero, 100($a0)
    9797        sw $zero, 104($a0)
    9898        sw $zero, 108($a0)
    99        
     99
    100100        sw $zero, 112($a0)
    101101        sw $zero, 116($a0)
    102102        sw $zero, 120($a0)
    103103        sw $zero, 124($a0)
    104        
     104
    105105        lui $a1, 1
    106        
     106
    107107#ifdef MACHINE_msim
    108        
     108
    109109        /* Read dorder value */
    110110        la $k0, MSIM_DORDER_ADDRESS
    111111        lw $k1, ($k0)
    112        
     112
    113113        /*
    114114         * If we are not running on BSP
     
    117117        beq $k1, $zero, bsp
    118118        nop
    119        
     119
    120120        /* Record CPU presence */
    121121        sll $a2, $k1, 2
    122122        addu $a2, $a2, $a0
    123123        sw $a1, ($a2)
    124        
     124
    125125        loop:
    126126                j loop
    127127                nop
    128        
     128
    129129#endif
    130        
     130
    131131        bsp:
    132132                /* Record CPU presence */
    133133                sw $a1, ($a0)
    134                
     134
    135135                /* Setup initial stack */
    136136                la $sp, PA2KA(STACK_OFFSET)
    137                
     137
    138138                j bootstrap
    139139                nop
Note: See TracChangeset for help on using the changeset viewer.