Changeset 8565a42 in mainline for kernel/arch/ia64/include


Ignore:
Timestamp:
2018-03-02T20:34:50Z (8 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

Location:
kernel/arch/ia64/include/arch
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/arch/asm.h

    r3061bc1 r8565a42  
    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}
  • kernel/arch/ia64/include/arch/atomic.h

    r3061bc1 r8565a42  
    4141{
    4242        atomic_count_t v;
    43        
     43
    4444        asm volatile (
    4545                "movl %[v] = 0x1;;\n"
     
    4848                  [count] "+m" (val->count)
    4949        );
    50        
     50
    5151        return v;
    5252}
     
    6262{
    6363        atomic_count_t v;
    64        
     64
    6565        asm volatile (
    6666                "fetchadd8.rel %[v] = %[count], 1\n"
     
    7373{
    7474        atomic_count_t v;
    75        
     75
    7676        asm volatile (
    7777                "fetchadd8.rel %[v] = %[count], -1\n"
     
    8484{
    8585        atomic_count_t v;
    86        
     86
    8787        asm volatile (
    8888                "fetchadd8.rel %[v] = %[count], 1\n"
     
    9090                  [count] "+m" (val->count)
    9191        );
    92        
     92
    9393        return (v + 1);
    9494}
     
    9797{
    9898        atomic_count_t v;
    99        
     99
    100100        asm volatile (
    101101                "fetchadd8.rel %[v] = %[count], -1\n"
     
    103103                  [count] "+m" (val->count)
    104104        );
    105        
     105
    106106        return (v - 1);
    107107}
     
    110110{
    111111        atomic_count_t v;
    112        
     112
    113113        asm volatile (
    114114                "fetchadd8.rel %[v] = %[count], 1\n"
     
    116116                  [count] "+m" (val->count)
    117117        );
    118        
     118
    119119        return v;
    120120}
     
    123123{
    124124        atomic_count_t v;
    125        
     125
    126126        asm volatile (
    127127                "fetchadd8.rel %[v] = %[count], -1\n"
     
    129129                  [count] "+m" (val->count)
    130130        );
    131        
     131
    132132        return v;
    133133}
  • kernel/arch/ia64/include/arch/bootinfo.h

    r3061bc1 r8565a42  
    4444        char name[BOOTINFO_TASK_NAME_BUFLEN];
    4545} binit_task_t;
    46        
     46
    4747typedef struct {
    4848        size_t cnt;
     
    5858typedef struct {
    5959        binit_t taskmap;
    60        
     60
    6161        memmap_item_t memmap[MEMMAP_ITEMS];
    6262        unsigned int memmap_items;
    63        
     63
    6464        sysarg_t *sapic;
    6565        unsigned long sys_freq;
  • kernel/arch/ia64/include/arch/cpu.h

    r3061bc1 r8565a42  
    6666{
    6767        uint64_t v;
    68        
     68
    6969        asm volatile (
    7070                "mov %[v] = cpuid[%[r]]\n"
     
    7272                : [r] "r" (n)
    7373        );
    74        
     74
    7575        return v;
    7676}
  • kernel/arch/ia64/include/arch/istate.h

    r3061bc1 r8565a42  
    6565{
    6666        /* FIXME */
    67        
     67
    6868        return 0;
    6969}
  • kernel/arch/ia64/include/arch/mm/page.h

    r3061bc1 r8565a42  
    117117        unsigned int ed : 1;
    118118        unsigned int ig1 : 11;
    119        
     119
    120120        /* Word 1 */
    121121        unsigned int : 2;
     
    123123        unsigned int key : 24;
    124124        unsigned int : 32;
    125        
     125
    126126        /* Word 2 */
    127127        union vhpt_tag tag;
    128        
     128
    129129        /* Word 3 */
    130130        uint64_t ig3 : 64;
     
    136136        unsigned long long ig0 : 52;
    137137        unsigned int ig1 : 11;
    138        
     138
    139139        /* Word 1 */
    140140        unsigned int : 2;
    141141        unsigned int ps : 6;
    142142        unsigned long long ig2 : 56;
    143        
     143
    144144        /* Word 2 */
    145145        union vhpt_tag tag;
    146        
     146
    147147        /* Word 3 */
    148148        uint64_t ig3 : 64;
     
    194194{
    195195        uint64_t ret;
    196        
     196
    197197        asm volatile (
    198198                "thash %[ret] = %[va]\n"
     
    200200                : [va] "r" (va)
    201201        );
    202        
     202
    203203        return ret;
    204204}
     
    216216{
    217217        uint64_t ret;
    218        
     218
    219219        asm volatile (
    220220                "ttag %[ret] = %[va]\n"
     
    222222                : [va] "r" (va)
    223223        );
    224        
     224
    225225        return ret;
    226226}
     
    235235{
    236236        uint64_t ret;
    237        
     237
    238238        assert(i < REGION_REGISTERS);
    239        
     239
    240240        asm volatile (
    241241                "mov %[ret] = rr[%[index]]\n"
     
    243243                : [index] "r" (i << VRN_SHIFT)
    244244        );
    245        
     245
    246246        return ret;
    247247}
     
    255255{
    256256        assert(i < REGION_REGISTERS);
    257        
     257
    258258        asm volatile (
    259259                "mov rr[%[index]] = %[value]\n"
     
    270270{
    271271        uint64_t ret;
    272        
     272
    273273        asm volatile (
    274274                "mov %[ret] = cr.pta\n"
    275275                : [ret] "=r" (ret)
    276276        );
    277        
     277
    278278        return ret;
    279279}
  • kernel/arch/ia64/include/arch/mm/tlb.h

    r3061bc1 r8565a42  
    6363                unsigned int ed : 1;
    6464                unsigned int ig1 : 11;
    65                
     65
    6666                /* Word 1 */
    6767                unsigned int : 2;
  • kernel/arch/ia64/include/arch/mm/vhpt.h

    r3061bc1 r8565a42  
    3232/** @file
    3333*/
    34                                                                                                
     34
    3535#ifndef KERN_ia64_VHPT_H_
    3636#define KERN_ia64_VHPT_H_
     
    4444{
    4545        vhpt_entry_t ventry;
    46        
     46
    4747        ventry.word[0] = tentry.word[0];
    4848        ventry.word[1] = tentry.word[1];
    49        
     49
    5050        return ventry;
    5151}
Note: See TracChangeset for help on using the changeset viewer.