Changeset 1433ecda in mainline for kernel/arch/riscv64/include


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.

Location:
kernel/arch/riscv64/include/arch
Files:
5 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    4747
    4848        asm volatile (
    49                 "csrrsi %[ipl], sstatus, " STRING(SSTATUS_SIE_MASK) "\n"
    50                 : [ipl] "=r" (ipl)
     49            "csrrsi %[ipl], sstatus, " STRING(SSTATUS_SIE_MASK) "\n"
     50            : [ipl] "=r" (ipl)
    5151        );
    5252
     
    5959
    6060        asm volatile (
    61                 "csrrci %[ipl], sstatus, " STRING(SSTATUS_SIE_MASK) "\n"
    62                 : [ipl] "=r" (ipl)
     61            "csrrci %[ipl], sstatus, " STRING(SSTATUS_SIE_MASK) "\n"
     62            : [ipl] "=r" (ipl)
    6363        );
    6464
     
    7979
    8080        asm volatile (
    81                 "csrr %[ipl], sstatus\n"
    82                 : [ipl] "=r" (ipl)
     81            "csrr %[ipl], sstatus\n"
     82            : [ipl] "=r" (ipl)
    8383        );
    8484
     
    9696
    9797        asm volatile (
    98                 "and %[base], sp, %[mask]\n"
    99                 : [base] "=r" (base)
    100                 : [mask] "r" (~(STACK_SIZE - 1))
     98            "and %[base], sp, %[mask]\n"
     99            : [base] "=r" (base)
     100            : [mask] "r" (~(STACK_SIZE - 1))
    101101        );
    102102
  • kernel/arch/riscv64/include/arch/atomic.h

    r47b2d7e3 r1433ecda  
    4141{
    4242        asm volatile (
    43                 "amoadd.d zero, %[inc], %[addr]\n"
    44                 : [addr] "+A" (val->count)
    45                 : [inc] "r" (1)
     43            "amoadd.d zero, %[inc], %[addr]\n"
     44            : [addr] "+A" (val->count)
     45            : [inc] "r" (1)
    4646        );
    4747}
     
    5050{
    5151        asm volatile (
    52                 "amoadd.d zero, %[inc], %[addr]\n"
    53                 : [addr] "+A" (val->count)
    54                 : [inc] "r" (-1)
     52            "amoadd.d zero, %[inc], %[addr]\n"
     53            : [addr] "+A" (val->count)
     54            : [inc] "r" (-1)
    5555        );
    5656}
     
    6161
    6262        asm volatile (
    63                 "amoadd.d %[orig], %[inc], %[addr]\n"
    64                 : [orig] "=r" (orig), [addr] "+A" (val->count)
    65                 : [inc] "r" (1)
     63            "amoadd.d %[orig], %[inc], %[addr]\n"
     64            : [orig] "=r" (orig), [addr] "+A" (val->count)
     65            : [inc] "r" (1)
    6666        );
    6767
     
    7474
    7575        asm volatile (
    76                 "amoadd.d %[orig], %[inc], %[addr]\n"
    77                 : [orig] "=r" (orig), [addr] "+A" (val->count)
    78                 : [inc] "r" (-1)
     76            "amoadd.d %[orig], %[inc], %[addr]\n"
     77            : [orig] "=r" (orig), [addr] "+A" (val->count)
     78            : [inc] "r" (-1)
    7979        );
    8080
     
    8787
    8888        asm volatile (
    89                 "amoadd.d %[orig], %[inc], %[addr]\n"
    90                 : [orig] "=r" (orig), [addr] "+A" (val->count)
    91                 : [inc] "r" (1)
     89            "amoadd.d %[orig], %[inc], %[addr]\n"
     90            : [orig] "=r" (orig), [addr] "+A" (val->count)
     91            : [inc] "r" (1)
    9292        );
    9393
     
    100100
    101101        asm volatile (
    102                 "amoadd.d %[orig], %[inc], %[addr]\n"
    103                 : [orig] "=r" (orig), [addr] "+A" (val->count)
    104                 : [inc] "r" (-1)
     102            "amoadd.d %[orig], %[inc], %[addr]\n"
     103            : [orig] "=r" (orig), [addr] "+A" (val->count)
     104            : [inc] "r" (-1)
    105105        );
    106106
  • kernel/arch/riscv64/include/arch/cycle.h

    r47b2d7e3 r1433ecda  
    4343
    4444        asm volatile (
    45                 "rdcycle %[cycle]\n"
    46                 : [cycle] "=r" (cycle)
     45            "rdcycle %[cycle]\n"
     46            : [cycle] "=r" (cycle)
    4747        );
    4848
  • kernel/arch/riscv64/include/arch/istate.h

    r47b2d7e3 r1433ecda  
    3939
    4040#ifdef KERNEL
    41         #include <arch/istate_struct.h>
     41#include <arch/istate_struct.h>
    4242#else
    43         #include <libarch/istate_struct.h>
     43#include <libarch/istate_struct.h>
    4444#endif
    4545
  • kernel/arch/riscv64/include/arch/mm/page.h

    r47b2d7e3 r1433ecda  
    4242
    4343#ifndef __ASSEMBLER__
    44         #define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffff800000000000))
    45         #define PA2KA(x)  (((uintptr_t) (x)) + UINT64_C(0xffff800000000000))
     44#define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffff800000000000))
     45#define PA2KA(x)  (((uintptr_t) (x)) + UINT64_C(0xffff800000000000))
    4646#else
    47         #define KA2PA(x)  ((x) - 0xffff800000000000)
    48         #define PA2KA(x)  ((x) + 0xffff800000000000)
     47#define KA2PA(x)  ((x) - 0xffff800000000000)
     48#define PA2KA(x)  ((x) + 0xffff800000000000)
    4949#endif
    5050
Note: See TracChangeset for help on using the changeset viewer.