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/fpu_context.c

    r3061bc1 ra35b458  
    6767         * GCC (4.1.1) can't handle more than 30 operands in one asm statement.
    6868         */
    69        
     69
    7070        asm volatile (
    7171                "std %%f32, %0\n"
     
    9090                  "=m" (fctx->d[28]), "=m" (fctx->d[29]), "=m" (fctx->d[30]), "=m" (fctx->d[31])
    9191        );
    92        
     92
    9393        asm volatile ("stx %%fsr, %0\n" : "=m" (fctx->fsr));
    9494}
     
    119119                  "m" (fctx->d[12]), "m" (fctx->d[13]), "m" (fctx->d[14]), "m" (fctx->d[15])
    120120        );
    121        
     121
    122122        /*
    123123         * We need to split loading of the floating-point registers because
    124124         * GCC (4.1.1) can't handle more than 30 operands in one asm statement.
    125125         */
    126        
     126
    127127        asm volatile (
    128128                "ldd %0, %%f32\n"
     
    148148                  "m" (fctx->d[28]), "m" (fctx->d[29]), "m" (fctx->d[30]), "m" (fctx->d[31])
    149149        );
    150        
     150
    151151        asm volatile ("ldx %0, %%fsr\n" : : "m" (fctx->fsr));
    152152}
     
    155155{
    156156        pstate_reg_t pstate;
    157        
     157
    158158        pstate.value = pstate_read();
    159159        pstate.pef = true;
     
    164164{
    165165        pstate_reg_t pstate;
    166        
     166
    167167        pstate.value = pstate_read();
    168168        pstate.pef = false;
Note: See TracChangeset for help on using the changeset viewer.