Changeset a35b458 in mainline for kernel/arch/ia64/include/arch/asm.h


Ignore:
Timestamp:
2018-03-02T20:10:49Z (6 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/ia64/include/arch/asm.h

    r3061bc1 ra35b458  
    5151        return legacyio_virt_base + (((prt >> 2) << 12) | (prt & 0xfff));
    5252}
    53        
     53
    5454NO_TRACE static inline void pio_write_8(ioport8_t *port, uint8_t v)
    5555{
     
    5858        else
    5959                *port = v;
    60        
     60
    6161        asm volatile (
    6262                "mf\n"
     
    7272        else
    7373                *port = v;
    74        
     74
    7575        asm volatile (
    7676                "mf\n"
     
    8686        else
    8787                *port = v;
    88        
     88
    8989        asm volatile (
    9090                "mf\n"
     
    112112                ::: "memory"
    113113        );
    114        
     114
    115115        return v;
    116116}
     
    134134                ::: "memory"
    135135        );
    136        
     136
    137137        return v;
    138138}
     
    141141{
    142142        uint32_t v;
    143        
    144         asm volatile (
    145                 "mf\n"
    146                 ::: "memory"
    147         );
    148        
     143
     144        asm volatile (
     145                "mf\n"
     146                ::: "memory"
     147        );
     148
    149149        if (port < (ioport32_t *) IO_SPACE_BOUNDARY)
    150150                v = *((ioport32_t *) p2a(port));
     
    169169{
    170170        uint64_t value;
    171        
     171
    172172        asm volatile (
    173173                "mov %[value] = r12"
    174174                : [value] "=r" (value)
    175175        );
    176        
     176
    177177        return (value & (~(STACK_SIZE / 2 - 1)));
    178178}
     
    186186{
    187187        uint64_t v;
    188        
     188
    189189        asm volatile (
    190190                "mov %[value] = psr\n"
    191191                : [value] "=r" (v)
    192192        );
    193        
     193
    194194        return v;
    195195}
     
    203203{
    204204        uint64_t v;
    205        
     205
    206206        asm volatile (
    207207                "mov %[value] = cr.iva\n"
    208208                : [value] "=r" (v)
    209209        );
    210        
     210
    211211        return v;
    212212}
     
    234234{
    235235        uint64_t v;
    236        
     236
    237237        asm volatile (
    238238                "mov %[value] = cr.ivr\n"
    239239                : [value] "=r" (v)
    240240        );
    241        
     241
    242242        return v;
    243243}
     
    246246{
    247247        uint64_t v;
    248        
     248
    249249        asm volatile (
    250250                "mov %[value] = cr64\n"
    251251                : [value] "=r" (v)
    252252        );
    253        
     253
    254254        return v;
    255255}
     
    276276{
    277277        uint64_t v;
    278        
     278
    279279        asm volatile (
    280280                "mov %[value] = ar.itc\n"
    281281                : [value] "=r" (v)
    282282        );
    283        
     283
    284284        return v;
    285285}
     
    306306{
    307307        uint64_t v;
    308        
     308
    309309        asm volatile (
    310310                "mov %[value] = cr.itm\n"
    311311                : [value] "=r" (v)
    312312        );
    313        
     313
    314314        return v;
    315315}
     
    323323{
    324324        uint64_t v;
    325        
     325
    326326        asm volatile (
    327327                "mov %[value] = cr.itv\n"
    328328                : [value] "=r" (v)
    329329        );
    330        
     330
    331331        return v;
    332332}
     
    366366{
    367367        uint64_t v;
    368        
     368
    369369        asm volatile (
    370370                "mov %[value] = cr.tpr\n"
    371371                : [value] "=r" (v)
    372372        );
    373        
     373
    374374        return v;
    375375}
     
    399399{
    400400        uint64_t v;
    401        
     401
    402402        asm volatile (
    403403                "mov %[value] = psr\n"
     
    406406                : [mask] "i" (PSR_I_MASK)
    407407        );
    408        
     408
    409409        return (ipl_t) v;
    410410}
     
    421421{
    422422        uint64_t v;
    423        
     423
    424424        asm volatile (
    425425                "mov %[value] = psr\n"
     
    430430                : [mask] "i" (PSR_I_MASK)
    431431        );
    432        
     432
    433433        return (ipl_t) v;
    434434}
Note: See TracChangeset for help on using the changeset viewer.