Changeset 1433ecda in mainline for kernel/arch/ppc32/src/mm


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/mm/tlb.c

    r47b2d7e3 r1433ecda  
    4444
    4545        asm volatile (
    46                 "mfspr %[tlbmiss], 980\n"
    47                 "mfspr %[ptehi], 981\n"
    48                 "mfspr %[ptelo], 982\n"
    49                 : [tlbmiss] "=r" (tlbmiss),
    50                   [ptehi] "=r" (ptehi),
    51                   [ptelo] "=r" (ptelo)
     46            "mfspr %[tlbmiss], 980\n"
     47            "mfspr %[ptehi], 981\n"
     48            "mfspr %[ptelo], 982\n"
     49            : [tlbmiss] "=r" (tlbmiss),
     50              [ptehi] "=r" (ptehi),
     51              [ptelo] "=r" (ptelo)
    5252        );
    5353
     
    6464        uint32_t index = 0;
    6565        asm volatile (
    66                 "mtspr 981, %[ptehi]\n"
    67                 "mtspr 982, %[ptelo]\n"
    68                 "tlbld %[index]\n"
    69                 "tlbli %[index]\n"
    70                 : [index] "=r" (index)
    71                 : [ptehi] "r" (ptehi),
    72                   [ptelo] "r" (ptelo)
     66            "mtspr 981, %[ptehi]\n"
     67            "mtspr 982, %[ptelo]\n"
     68            "tlbld %[index]\n"
     69            "tlbli %[index]\n"
     70            : [index] "=r" (index)
     71            : [ptehi] "r" (ptehi),
     72              [ptelo] "r" (ptelo)
    7373        );
    7474}
     
    8282{
    8383        asm volatile (
    84                 "sync\n"
     84            "sync\n"
    8585        );
    8686
    8787        for (unsigned int i = 0; i < 0x00040000; i += 0x00001000) {
    8888                asm volatile (
    89                         "tlbie %[i]\n"
    90                         :: [i] "r" (i)
     89                    "tlbie %[i]\n"
     90                    :: [i] "r" (i)
    9191                );
    9292        }
    9393
    9494        asm volatile (
    95                 "eieio\n"
    96                 "tlbsync\n"
    97                 "sync\n"
     95            "eieio\n"
     96            "tlbsync\n"
     97            "sync\n"
    9898        );
    9999}
Note: See TracChangeset for help on using the changeset viewer.