Changeset 8565a42 in mainline for kernel/arch/ppc32/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/ppc32/include/arch
Files:
6 edited

Legend:

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

    r3061bc1 r8565a42  
    4545{
    4646        uint32_t msr;
    47        
     47
    4848        asm volatile (
    4949                "mfmsr %[msr]\n"
    5050                : [msr] "=r" (msr)
    5151        );
    52        
     52
    5353        return msr;
    5454}
     
    7777{
    7878        uint32_t vsid;
    79        
     79
    8080        asm volatile (
    8181                "mfsrin %[vsid], %[vaddr]\n"
     
    8383                : [vaddr] "r" (vaddr)
    8484        );
    85        
     85
    8686        return vsid;
    8787}
     
    9090{
    9191        uint32_t sdr1;
    92        
     92
    9393        asm volatile (
    9494                "mfsdr1 %[sdr1]\n"
    9595                : [sdr1] "=r" (sdr1)
    9696        );
    97        
     97
    9898        return sdr1;
    9999}
     
    173173{
    174174        uintptr_t base;
    175        
     175
    176176        asm volatile (
    177177                "and %[base], %%sp, %[mask]\n"
     
    179179                : [mask] "r" (~(STACK_SIZE - 1))
    180180        );
    181        
     181
    182182        return base;
    183183}
  • kernel/arch/ppc32/include/arch/atomic.h

    r3061bc1 r8565a42  
    4141{
    4242        atomic_count_t tmp;
    43        
     43
    4444        asm volatile (
    4545                "1:\n"
     
    5959{
    6060        atomic_count_t tmp;
    61        
     61
    6262        asm volatile (
    6363                "1:\n"
  • kernel/arch/ppc32/include/arch/barrier.h

    r3061bc1 r8565a42  
    7777{
    7878        unsigned int i;
    79        
     79
    8080        for (i = 0; i < len; i += COHERENCE_INVAL_MIN)
    8181                asm volatile (
     
    8383                        :: [addr] "r" (addr + i)
    8484                );
    85        
     85
    8686        memory_barrier();
    87        
     87
    8888        for (i = 0; i < len; i += COHERENCE_INVAL_MIN)
    8989                asm volatile (
     
    9191                        :: [addr] "r" (addr + i)
    9292                );
    93        
     93
    9494        instruction_barrier();
    9595}
  • kernel/arch/ppc32/include/arch/cycle.h

    r3061bc1 r8565a42  
    4343        uint32_t upper;
    4444        uint32_t tmp;
    45        
     45
    4646        do {
    4747                asm volatile (
     
    5454                );
    5555        } while (upper != tmp);
    56        
     56
    5757        return ((uint64_t) upper << 32) + (uint64_t) lower;
    5858}
  • kernel/arch/ppc32/include/arch/mm/frame.h

    r3061bc1 r8565a42  
    4949{
    5050        uint32_t physmem;
    51        
     51
    5252        asm volatile (
    5353                "mfsprg3 %[physmem]\n"
    5454                : [physmem] "=r" (physmem)
    5555        );
    56        
     56
    5757        return physmem;
    5858}
  • kernel/arch/ppc32/include/arch/mm/page.h

    r3061bc1 r8565a42  
    165165{
    166166        pte_t *entry = &pt[i];
    167        
     167
    168168        return (((!entry->page_cache_disable) << PAGE_CACHEABLE_SHIFT) |
    169169            ((!entry->present) << PAGE_PRESENT_SHIFT) |
     
    178178{
    179179        pte_t *entry = &pt[i];
    180        
     180
    181181        entry->page_cache_disable = !(flags & PAGE_CACHEABLE);
    182182        entry->present = !(flags & PAGE_NOT_PRESENT);
Note: See TracChangeset for help on using the changeset viewer.