Changeset b63f8569 in mainline


Ignore:
Timestamp:
2008-06-03T14:58:53Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4c2b6a
Parents:
cd8ad52
Message:

introduce portable formatting directives
remove common types

Location:
kernel/arch
Files:
9 edited

Legend:

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

    rcd8ad52 rb63f8569  
    3636#define KERN_amd64_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    6258typedef int64_t native_t;
    6359
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
     60/**< Formats for uintptr_t, size_t, count_t and index_t */
     61#define PRIp "llx"
     62#define PRIs "llu"
     63#define PRIc "llu"
     64#define PRIi "llu"
    6865
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
     66/**< Formats for (u)int8_t, (u)int16_t, (u)int32_t, (u)int64_t and (u)native_t */
     67#define PRId8 "d"
     68#define PRId16 "d"
     69#define PRId32 "d"
     70#define PRId64 "lld"
     71#define PRIdn "lld"
     72
     73#define PRIu8 "u"
     74#define PRIu16 "u"
     75#define PRIu32 "u"
     76#define PRIu64 "llu"
     77#define PRIun "llu"
     78
     79#define PRIx8 "x"
     80#define PRIx16 "x"
     81#define PRIx32 "x"
     82#define PRIx64 "llx"
     83#define PRIxn "llx"
    7184
    7285/** Page Table Entry. */
  • kernel/arch/arm32/include/types.h

    rcd8ad52 rb63f8569  
    4343#endif
    4444
    45 #define NULL 0
    46 #define false 0
    47 #define true 1
    48 
    4945typedef signed char int8_t;
    5046typedef signed short int16_t;
     
    6965typedef int32_t native_t;
    7066
    71 typedef uint8_t bool;
    72 typedef uint64_t thread_id_t;
    73 typedef uint64_t task_id_t;
    74 typedef uint32_t context_id_t;
    75 
    76 typedef int32_t inr_t;
    77 typedef int32_t devno_t;
    78 
    7967
    8068/** Page table entry.
  • kernel/arch/ia32/include/types.h

    rcd8ad52 rb63f8569  
    3636#define KERN_ia32_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    6258typedef int32_t native_t;
    6359
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
     60/**< Formats for uintptr_t, size_t, count_t and index_t */
     61#define PRIp "x"
     62#define PRIs "u"
     63#define PRIc "u"
     64#define PRIi "u"
    6865
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
     66/**< Formats for (u)int8_t, (u)int16_t, (u)int32_t, (u)int64_t and (u)native_t */
     67#define PRId8 "d"
     68#define PRId16 "d"
     69#define PRId32 "d"
     70#define PRId64 "lld"
     71#define PRIdn "d"
     72
     73#define PRIu8 "u"
     74#define PRIu16 "u"
     75#define PRIu32 "u"
     76#define PRIu64 "llu"
     77#define PRIun "u"
     78
     79#define PRIx8 "x"
     80#define PRIx16 "x"
     81#define PRIx32 "x"
     82#define PRIx64 "llx"
     83#define PRIxn "x"
    7184
    7285/** Page Table Entry. */
  • kernel/arch/ia32xen/include/types.h

    rcd8ad52 rb63f8569  
    6262typedef int32_t native_t;
    6363
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
    68 
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
    71 
    7264/** Page Table Entry. */
    7365typedef struct {
  • kernel/arch/ia64/include/types.h

    rcd8ad52 rb63f8569  
    3636#define KERN_ia64_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    7066typedef int64_t native_t;
    7167
    72 typedef uint8_t bool;
    73 typedef uint64_t thread_id_t;
    74 typedef uint64_t task_id_t;
    75 typedef uint32_t context_id_t;
    76 
    77 typedef int32_t inr_t;
    78 typedef int32_t devno_t;
    79 
    8068#endif
    8169
  • kernel/arch/mips32/include/types.h

    rcd8ad52 rb63f8569  
    3636#define KERN_mips32_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    6258typedef int32_t native_t;
    6359
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
    68 
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
    71 
    7260/** Page Table Entry. */
    7361typedef struct {
  • kernel/arch/ppc32/include/types.h

    rcd8ad52 rb63f8569  
    3636#define KERN_ppc32_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    6258typedef int32_t native_t;
    6359
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
     60/**< Formats for uintptr_t, size_t, count_t and index_t */
     61#define PRIp "x"
     62#define PRIs "u"
     63#define PRIc "u"
     64#define PRIi "u"
    6865
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
     66/**< Formats for (u)int8_t, (u)int16_t, (u)int32_t, (u)int64_t and (u)native_t */
     67#define PRId8 "d"
     68#define PRId16 "d"
     69#define PRId32 "d"
     70#define PRId64 "lld"
     71#define PRIdn "d"
     72
     73#define PRIu8 "u"
     74#define PRIu16 "u"
     75#define PRIu32 "u"
     76#define PRIu64 "llu"
     77#define PRIun "u"
     78
     79#define PRIx8 "x"
     80#define PRIx16 "x"
     81#define PRIx32 "x"
     82#define PRIx64 "llx"
     83#define PRIxn "x"
    7184
    7285/** Page Table Entry. */
  • kernel/arch/ppc64/include/types.h

    rcd8ad52 rb63f8569  
    3636#define KERN_ppc64_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    6258typedef int64_t native_t;
    6359
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
    68 
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
    71 
    7260/** Page Table Entry. */
    7361typedef struct {
  • kernel/arch/sparc64/include/types.h

    rcd8ad52 rb63f8569  
    3636#define KERN_sparc64_TYPES_H_
    3737
    38 #define NULL 0
    39 #define false 0
    40 #define true 1
    41 
    4238typedef signed char int8_t;
    4339typedef signed short int16_t;
     
    6258typedef int64_t native_t;
    6359
    64 typedef uint8_t bool;
    65 typedef uint64_t thread_id_t;
    66 typedef uint64_t task_id_t;
    67 typedef uint32_t context_id_t;
     60/**< Formats for uintptr_t, size_t, count_t and index_t */
     61#define PRIp "llx"
     62#define PRIs "llu"
     63#define PRIc "llu"
     64#define PRIi "llu"
    6865
    69 typedef int32_t inr_t;
    70 typedef int32_t devno_t;
     66/**< Formats for (u)int8_t, (u)int16_t, (u)int32_t, (u)int64_t and (u)native_t */
     67#define PRId8 "d"
     68#define PRId16 "d"
     69#define PRId32 "d"
     70#define PRId64 "lld"
     71#define PRIdn "lld"
     72
     73#define PRIu8 "u"
     74#define PRIu16 "u"
     75#define PRIu32 "u"
     76#define PRIu64 "llu"
     77#define PRIun "llu"
     78
     79#define PRIx8 "x"
     80#define PRIx16 "x"
     81#define PRIx32 "x"
     82#define PRIx64 "llx"
     83#define PRIxn "llx"
     84
    7185typedef uint8_t asi_t;
    7286
Note: See TracChangeset for help on using the changeset viewer.