Changeset 002fd5f in mainline for kernel


Ignore:
Timestamp:
2017-10-24T04:54:05Z (8 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b639d56
Parents:
9ddcb0b
Message:

Replace parts of system headers with <_bits/…>.

Location:
kernel
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/abs32le/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_abs32le_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 #define ATOMIC_COUNT_MIN  UINT32_MIN
    41 #define ATOMIC_COUNT_MAX  UINT32_MAX
    42 
    43 typedef uint32_t size_t;
    44 typedef int32_t ssize_t;
    45 
    46 typedef uint32_t uintptr_t;
    47 typedef uint32_t pfn_t;
    48 
    49 typedef uint32_t ipl_t;
    50 
    51 typedef uint32_t sysarg_t;
    52 typedef int32_t native_t;
    53 typedef uint32_t atomic_count_t;
     38#include <_bits/all.h>
    5439
    5540typedef struct {
    5641} fncptr_t;
    57 
    58 #define PRIdn  PRId32  /**< Format for native_t. */
    59 #define PRIun  PRIu32  /**< Format for sysarg_t. */
    60 #define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
    61 #define PRIua  PRIu32  /**< Format for atomic_count_t. */
    6242
    6343#endif
  • kernel/arch/amd64/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_amd64_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint64_t size_t;
    41 typedef int64_t ssize_t;
    42 
    43 typedef uint64_t uintptr_t;
    44 typedef uint64_t pfn_t;
    45 
    46 typedef uint64_t ipl_t;
    47 
    48 typedef uint64_t sysarg_t;
    49 typedef int64_t native_t;
    50 typedef uint64_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
    5341} fncptr_t;
    54 
    55 #define PRIdn  PRId64  /**< Format for native_t. */
    56 #define PRIun  PRIu64  /**< Format for sysarg_t. */
    57 #define PRIxn  PRIx64  /**< Format for hexadecimal sysarg_t. */
    58 #define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5942
    6043#endif
  • kernel/arch/arm32/include/arch/types.h

    r9ddcb0b r002fd5f  
    3737#define KERN_arm32_TYPES_H_
    3838
    39 #include <arch/common.h>
    40 
    4139#ifndef DOXYGEN
    4240        #define ATTRIBUTE_PACKED __attribute__((packed))
     
    4543#endif
    4644
    47 typedef uint32_t size_t;
    48 typedef int32_t ssize_t;
    49 
    50 typedef uint32_t uintptr_t;
    51 typedef uint32_t pfn_t;
    52 
    53 typedef uint32_t ipl_t;
    54 
    55 typedef uint32_t sysarg_t;
    56 typedef int32_t native_t;
    57 typedef uint32_t atomic_count_t;
     45#include <_bits/all.h>
    5846
    5947typedef struct {
    6048} fncptr_t;
    61 
    62 #define PRIdn  PRId32  /**< Format for native_t. */
    63 #define PRIun  PRIu32  /**< Format for sysarg_t. */
    64 #define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
    65 #define PRIua  PRIu32  /**< Format for atomic_count_t. */
    6649
    6750#endif
  • kernel/arch/ia32/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_ia32_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint32_t size_t;
    41 typedef int32_t ssize_t;
    42 
    43 typedef uint32_t uintptr_t;
    44 typedef uint32_t pfn_t;
    45 
    46 typedef uint32_t ipl_t;
    47 
    48 typedef uint32_t sysarg_t;
    49 typedef int32_t native_t;
    50 typedef uint32_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
    5341} fncptr_t;
    54 
    55 #define PRIdn  PRId32  /**< Format for native_t. */
    56 #define PRIun  PRIu32  /**< Format for sysarg_t. */
    57 #define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
    58 #define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5942
    6043#endif
  • kernel/arch/ia64/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_ia64_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint64_t size_t;
    41 typedef int64_t ssize_t;
    42 
    43 typedef uint64_t uintptr_t;
    44 typedef uint64_t pfn_t;
    45 
    46 typedef uint64_t ipl_t;
    47 
    48 typedef uint64_t sysarg_t;
    49 typedef int64_t native_t;
    50 typedef uint64_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
     
    5543} __attribute__((may_alias)) fncptr_t;
    5644
    57 #define PRIdn  PRId64  /**< Format for native_t. */
    58 #define PRIun  PRIu64  /**< Format for sysarg_t. */
    59 #define PRIxn  PRIx64  /**< Format for hexadecimal sysarg_t. */
    60 #define PRIua  PRIu64  /**< Format for atomic_count_t. */
    61 
    6245#endif
    6346
  • kernel/arch/ia64/src/interrupt.c

    r9ddcb0b r002fd5f  
    142142            istate->cr_isr.value, istate->cr_ipsr.value);
    143143       
    144         printf("cr.iip=%#0" PRIx64 ", #%u\t(%s)\n",
     144        printf("cr.iip=%#0" PRIxPTR ", #%u\t(%s)\n",
    145145            istate->cr_iip, istate->cr_isr.ei,
    146146            symtab_fmt_name_lookup(istate->cr_iip));
    147         printf("cr.iipa=%#0" PRIx64 "\t(%s)\n", istate->cr_iipa,
     147        printf("cr.iipa=%#0" PRIxPTR "\t(%s)\n", istate->cr_iipa,
    148148            symtab_fmt_name_lookup(istate->cr_iipa));
    149         printf("cr.ifa=%#0" PRIx64 "\t(%s)\n", istate->cr_ifa,
     149        printf("cr.ifa=%#0" PRIxPTR "\t(%s)\n", istate->cr_ifa,
    150150            symtab_fmt_name_lookup(istate->cr_ifa));
    151151}
  • kernel/arch/mips32/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_mips32_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint32_t size_t;
    41 typedef int32_t ssize_t;
    42 
    43 typedef uint32_t uintptr_t;
    44 typedef uint32_t pfn_t;
    45 
    46 typedef uint32_t ipl_t;
    47 
    48 typedef uint32_t sysarg_t;
    49 typedef int32_t native_t;
    50 typedef uint32_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
    5341} fncptr_t;
    54 
    55 #define PRIdn  PRId32  /**< Format for native_t. */
    56 #define PRIun  PRIu32  /**< Format for sysarg_t. */
    57 #define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
    58 #define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5942
    6043#endif
  • kernel/arch/ppc32/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_ppc32_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint32_t size_t;
    41 typedef int32_t ssize_t;
    42 
    43 typedef uint32_t uintptr_t;
    44 typedef uint32_t pfn_t;
    45 
    46 typedef uint32_t ipl_t;
    47 
    48 typedef uint32_t sysarg_t;
    49 typedef int32_t native_t;
    50 typedef uint32_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
    5341} fncptr_t;
    54 
    55 #define PRIdn  PRId32  /**< Format for native_t. */
    56 #define PRIun  PRIu32  /**< Format for sysarg_t. */
    57 #define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
    58 #define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5942
    6043#endif
  • kernel/arch/riscv64/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_riscv64_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint64_t size_t;
    41 typedef int64_t ssize_t;
    42 
    43 typedef uint64_t uintptr_t;
    44 typedef uint64_t pfn_t;
    45 
    46 typedef uint64_t ipl_t;
    47 
    48 typedef uint64_t sysarg_t;
    49 typedef int64_t native_t;
    50 typedef uint64_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
    5341} fncptr_t;
    54 
    55 #define PRIdn  PRId64  /**< Format for native_t. */
    56 #define PRIun  PRIu64  /**< Format for sysarg_t. */
    57 #define PRIxn  PRIx64  /**< Format for hexadecimal sysarg_t. */
    58 #define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5942
    6043#endif
  • kernel/arch/sparc64/include/arch/asm.h

    r9ddcb0b r002fd5f  
    350350       
    351351        pstate.value = pstate_read();
    352         pstate.ie = ((pstate_reg_t) ipl).ie;
     352        pstate.ie = ((pstate_reg_t)(uint64_t) ipl).ie;
    353353        pstate_write(pstate.value);
    354354}
  • kernel/arch/sparc64/include/arch/barrier.h

    r9ddcb0b r002fd5f  
    3737
    3838#include <trace.h>
    39 
    40 #ifdef KERNEL
    41 #include <arch/common.h>
    42 #else
    43 #include <libarch/common.h>
    44 #endif
    4539
    4640/*
     
    8882NO_TRACE static inline void flush_pipeline(void)
    8983{
    90         uint64_t pc;
     84        unsigned long pc;
    9185       
    9286        /*
  • kernel/arch/sparc64/include/arch/mm/sun4v/tsb.h

    r9ddcb0b r002fd5f  
    7272struct pte;
    7373
    74 extern void tsb_invalidate(struct as *as, uintptr_t page, uint64_t pages);
     74extern void tsb_invalidate(struct as *as, uintptr_t page, size_t pages);
    7575extern void itsb_pte_copy(struct pte *t);
    7676extern void dtsb_pte_copy(struct pte *t, bool ro);
  • kernel/arch/sparc64/include/arch/types.h

    r9ddcb0b r002fd5f  
    3636#define KERN_sparc64_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    40 typedef uint64_t size_t;
    41 typedef int64_t ssize_t;
    42 
    43 typedef uint64_t uintptr_t;
    44 typedef uint64_t pfn_t;
    45 
    46 typedef uint64_t ipl_t;
    47 
    48 typedef uint64_t sysarg_t;
    49 typedef int64_t native_t;
    50 typedef uint64_t atomic_count_t;
     38#include <_bits/all.h>
    5139
    5240typedef struct {
     
    5543typedef uint8_t asi_t;
    5644
    57 #define PRIdn  PRId64  /**< Format for native_t. */
    58 #define PRIun  PRIu64  /**< Format for sysarg_t. */
    59 #define PRIxn  PRIx64  /**< Format for hexadecimal sysarg_t. */
    60 #define PRIua  PRIu64  /**< Format for atomic_count_t. */
    61 
    6245#endif
    6346
  • kernel/generic/include/stddef.h

    r9ddcb0b r002fd5f  
    3838#include <arch/types.h>
    3939
    40 typedef native_t ptrdiff_t;
    41 
    4240#ifndef NULL
    4341        #define NULL  ((void *) 0)
  • kernel/generic/include/stdint.h

    r9ddcb0b r002fd5f  
    3636#define KERN_STDINT_H_
    3737
    38 #include <arch/common.h>
    39 
    40 #define INT8_MIN  INT8_C(0x80)
    41 #define INT8_MAX  INT8_C(0x7F)
    42 
    43 #define UINT8_MIN  UINT8_C(0)
    44 #define UINT8_MAX  UINT8_C(0xFF)
    45 
    46 #define INT16_MIN  INT16_C(0x8000)
    47 #define INT16_MAX  INT16_C(0x7FFF)
    48 
    49 #define UINT16_MIN  UINT16_C(0)
    50 #define UINT16_MAX  UINT16_C(0xFFFF)
    51 
    52 #define INT32_MIN  INT32_C(0x80000000)
    53 #define INT32_MAX  INT32_C(0x7FFFFFFF)
    54 
    55 #define UINT32_MIN  UINT32_C(0)
    56 #define UINT32_MAX  UINT32_C(0xFFFFFFFF)
    57 
    58 #define INT64_MIN  INT64_C(0x8000000000000000)
    59 #define INT64_MAX  INT64_C(0x7FFFFFFFFFFFFFFF)
    60 
    61 #define UINT64_MIN  UINT64_C(0)
    62 #define UINT64_MAX  UINT64_C(0xFFFFFFFFFFFFFFFF)
     38#include <_bits/stdint.h>
    6339
    6440#endif
  • kernel/generic/include/typedefs.h

    r9ddcb0b r002fd5f  
    3636#define KERN_TYPEDEFS_H_
    3737
    38 #include <stdint.h>
    39 #include <arch/common.h>
    4038#include <arch/types.h>
    4139
  • kernel/generic/src/lib/str.c

    r9ddcb0b r002fd5f  
    114114
    115115/** Check the condition if wchar_t is signed */
    116 #ifdef WCHAR_IS_UNSIGNED
     116#ifdef __WCHAR_UNSIGNED__
    117117        #define WCHAR_SIGNED_CHECK(cond)  (true)
    118118#else
Note: See TracChangeset for help on using the changeset viewer.