Changeset d0a1fc8 in rtems
- Timestamp:
- 03/06/17 01:16:56 (7 years ago)
- Branches:
- 5, master
- Children:
- 67f49b98
- Parents:
- 90f54b0e
- git-author:
- David Gibson <david@…> (03/06/17 01:16:56)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/19/18 05:01:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/libfdt_env.h
r90f54b0e rd0a1fc8 59 59 60 60 #ifdef __CHECKER__ 61 #define __force__attribute__((force))62 #define __bitwise__attribute__((bitwise))61 #define FDT_FORCE __attribute__((force)) 62 #define FDT_BITWISE __attribute__((bitwise)) 63 63 #else 64 #define __force65 #define __bitwise64 #define FDT_FORCE 65 #define FDT_BITWISE 66 66 #endif 67 67 68 typedef uint16_t __bitwisefdt16_t;69 typedef uint32_t __bitwisefdt32_t;70 typedef uint64_t __bitwisefdt64_t;68 typedef uint16_t FDT_BITWISE fdt16_t; 69 typedef uint32_t FDT_BITWISE fdt32_t; 70 typedef uint64_t FDT_BITWISE fdt64_t; 71 71 72 72 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) … … 81 81 static inline uint16_t fdt16_to_cpu(fdt16_t x) 82 82 { 83 return ( __forceuint16_t)CPU_TO_FDT16(x);83 return (FDT_FORCE uint16_t)CPU_TO_FDT16(x); 84 84 } 85 85 static inline fdt16_t cpu_to_fdt16(uint16_t x) 86 86 { 87 return ( __forcefdt16_t)CPU_TO_FDT16(x);87 return (FDT_FORCE fdt16_t)CPU_TO_FDT16(x); 88 88 } 89 89 90 90 static inline uint32_t fdt32_to_cpu(fdt32_t x) 91 91 { 92 return ( __forceuint32_t)CPU_TO_FDT32(x);92 return (FDT_FORCE uint32_t)CPU_TO_FDT32(x); 93 93 } 94 94 static inline fdt32_t cpu_to_fdt32(uint32_t x) 95 95 { 96 return ( __forcefdt32_t)CPU_TO_FDT32(x);96 return (FDT_FORCE fdt32_t)CPU_TO_FDT32(x); 97 97 } 98 98 99 99 static inline uint64_t fdt64_to_cpu(fdt64_t x) 100 100 { 101 return ( __forceuint64_t)CPU_TO_FDT64(x);101 return (FDT_FORCE uint64_t)CPU_TO_FDT64(x); 102 102 } 103 103 static inline fdt64_t cpu_to_fdt64(uint64_t x) 104 104 { 105 return ( __forcefdt64_t)CPU_TO_FDT64(x);105 return (FDT_FORCE fdt64_t)CPU_TO_FDT64(x); 106 106 } 107 107 #undef CPU_TO_FDT64
Note: See TracChangeset
for help on using the changeset viewer.