Changeset 7c3fb9b in mainline for uspace/lib/c/arch


Ignore:
Timestamp:
2018-05-17T08:29:01Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ff23ff
Parents:
fac0ac7
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
Message:

Fix block comment formatting (ccheck).

Location:
uspace/lib/c/arch
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/abs32le/include/libarch/atomic.h

    rfac0ac7 r7c3fb9b  
    5555static inline void atomic_inc(atomic_t *val)
    5656{
    57         /* On real hardware the increment has to be done
    58            as an atomic action. */
     57        /*
     58         * On real hardware the increment has to be done
     59         * as an atomic action.
     60         */
    5961
    6062        val->count++;
     
    6365static inline void atomic_dec(atomic_t *val)
    6466{
    65         /* On real hardware the decrement has to be done
    66            as an atomic action. */
     67        /*
     68         * On real hardware the decrement has to be done
     69         * as an atomic action.
     70         */
    6771
    6872        val->count++;
     
    7175static inline atomic_count_t atomic_postinc(atomic_t *val)
    7276{
    73         /* On real hardware both the storing of the previous
    74            value and the increment have to be done as a single
    75            atomic action. */
     77        /*
     78         * On real hardware both the storing of the previous
     79         * value and the increment have to be done as a single
     80         * atomic action.
     81         */
    7682
    7783        atomic_count_t prev = val->count;
     
    8389static inline atomic_count_t atomic_postdec(atomic_t *val)
    8490{
    85         /* On real hardware both the storing of the previous
    86            value and the decrement have to be done as a single
    87            atomic action. */
     91        /*
     92         * On real hardware both the storing of the previous
     93         * value and the decrement have to be done as a single
     94         * atomic action.
     95         */
    8896
    8997        atomic_count_t prev = val->count;
  • uspace/lib/c/arch/amd64/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights reserved.
    34 *
     
    4546
    4647typedef struct context {
    47         /* We include only registers that must be preserved
     48        /*
     49         * We include only registers that must be preserved
    4850         * during function call.
    4951         */
  • uspace/lib/c/arch/arm32/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights reserved.
    34 *
  • uspace/lib/c/arch/ia32/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights preserved.
    34 *
  • uspace/lib/c/arch/ia64/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights preserved.
    34 *
  • uspace/lib/c/arch/mips32/include/libarch/atomic.h

    rfac0ac7 r7c3fb9b  
    5050#define atomic_predec(x)  atomic_add(x, -1)
    5151
    52 /* Atomic addition of immediate value.
     52/** Atomic addition of immediate value.
    5353 *
    5454 * @param val Memory location to which will be the immediate value added.
  • uspace/lib/c/arch/mips32/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights reserved.
    34 *
  • uspace/lib/c/arch/mips32/include/libarch/tls.h

    rfac0ac7 r7c3fb9b  
    4646#define CONFIG_TLS_VARIANT_1
    4747
    48 /* I did not find any specification (neither MIPS nor PowerPC), but
     48/*
     49 * I did not find any specification (neither MIPS nor PowerPC), but
    4950 * as I found it
    5051 * - it uses Variant II
  • uspace/lib/c/arch/ppc32/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights reserved.
    34 *
  • uspace/lib/c/arch/riscv64/include/libarch/atomic.h

    rfac0ac7 r7c3fb9b  
    5757static inline void atomic_inc(atomic_t *val)
    5858{
    59         /* On real hardware the increment has to be done
    60            as an atomic action. */
     59        /*
     60         * On real hardware the increment has to be done
     61         * as an atomic action.
     62         */
    6163
    6264        val->count++;
     
    6567static inline void atomic_dec(atomic_t *val)
    6668{
    67         /* On real hardware the decrement has to be done
    68            as an atomic action. */
     69        /*
     70         * On real hardware the decrement has to be done
     71         * as an atomic action.
     72         */
    6973
    7074        val->count++;
     
    7377static inline atomic_count_t atomic_postinc(atomic_t *val)
    7478{
    75         /* On real hardware both the storing of the previous
    76            value and the increment have to be done as a single
    77            atomic action. */
     79        /*
     80         * On real hardware both the storing of the previous
     81         * value and the increment have to be done as a single
     82         * atomic action.
     83         */
    7884
    7985        atomic_count_t prev = val->count;
     
    8591static inline atomic_count_t atomic_postdec(atomic_t *val)
    8692{
    87         /* On real hardware both the storing of the previous
    88            value and the decrement have to be done as a single
    89            atomic action. */
     93        /*
     94         * On real hardware both the storing of the previous
     95         * value and the decrement have to be done as a single
     96         * atomic action.
     97         */
    9098
    9199        atomic_count_t prev = val->count;
  • uspace/lib/c/arch/riscv64/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2016 Martin Decky
     1/*
     2 * Copyright (c) 2016 Martin Decky
    23 * All rights reserved.
    34 *
  • uspace/lib/c/arch/sparc64/include/libarch/fibril_context.h

    rfac0ac7 r7c3fb9b  
    1 /* Copyright (c) 2014 Jakub Jermar
     1/*
     2 * Copyright (c) 2014 Jakub Jermar
    23 * All rights reserved.
    34 *
Note: See TracChangeset for help on using the changeset viewer.