Ignore:
File:
1 edited

Legend:

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

    rd99c1d2 r8b6930d  
    4444
    4545typedef uint32_t size_t;
     46typedef int32_t ssize_t;
    4647
    4748typedef uint32_t uintptr_t;
     
    5051typedef uint32_t ipl_t;
    5152
    52 typedef uint32_t unative_t;
     53typedef uint32_t sysarg_t;
    5354typedef int32_t native_t;
    5455typedef uint32_t atomic_count_t;
     
    5758} fncptr_t;
    5859
    59 #define PRIp "x"  /**< Format for uintptr_t. */
    60 #define PRIs "u"  /**< Format for size_t. */
     60#define INTN_C(c)   INT32_C(c)
     61#define UINTN_C(c)  UINT32_C(c)
    6162
    62 #define PRId8 "d"     /**< Format for int8_t. */
    63 #define PRId16 "d"    /**< Format for int16_t. */
    64 #define PRId32 "d"    /**< Format for int32_t. */
    65 #define PRId64 "lld"  /**< Format for int64_t. */
    66 #define PRIdn "d"     /**< Format for native_t. */
    67 
    68 #define PRIu8 "u"     /**< Format for uint8_t. */
    69 #define PRIu16 "u"    /**< Format for uint16_t. */
    70 #define PRIu32 "u"    /**< Format for uint32_t. */
    71 #define PRIu64 "llu"  /**< Format for uint64_t. */
    72 #define PRIun "u"     /**< Format for unative_t. */
    73 
    74 #define PRIx8 "x"     /**< Format for hexadecimal (u)int8_t. */
    75 #define PRIx16 "x"    /**< Format for hexadecimal (u)int16_t. */
    76 #define PRIx32 "x"    /**< Format for hexadecimal (u)uint32_t. */
    77 #define PRIx64 "llx"  /**< Format for hexadecimal (u)int64_t. */
    78 #define PRIxn "x"     /**< Format for hexadecimal (u)native_t. */
     63#define PRIdn  PRId32  /**< Format for native_t. */
     64#define PRIun  PRIu32  /**< Format for sysarg_t. */
     65#define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
     66#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    7967
    8068#endif
Note: See TracChangeset for help on using the changeset viewer.