Changeset 83253ad in mainline
- Timestamp:
- 2006-07-04T17:17:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 822b64e
- Parents:
- fec35544
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/loader/types.h
rfec35544 r83253ad 32 32 #include <gentypes.h> 33 33 34 typedef signed char __s8;34 typedef signed char int8_t; 35 35 36 typedef unsigned char __u8;37 typedef unsigned short __u16;38 typedef unsigned int __u32;39 typedef unsigned long long __u64;36 typedef unsigned char uint8_t; 37 typedef unsigned short uint16_t; 38 typedef unsigned int uint32_t; 39 typedef unsigned long long uint64_t; 40 40 41 typedef __u32 __address;42 typedef __u32 __native;41 typedef uint32_t uintptr_t; 42 typedef uint32_t unative_t; 43 43 44 44 #endif -
arch/ppc32/loader/types.h
rfec35544 r83253ad 32 32 #include <gentypes.h> 33 33 34 typedef signed char __s8;34 typedef signed char int8_t; 35 35 36 typedef unsigned char __u8;37 typedef unsigned short __u16;38 typedef unsigned int __u32;39 typedef unsigned long long __u64;36 typedef unsigned char uint8_t; 37 typedef unsigned short uint16_t; 38 typedef unsigned int uint32_t; 39 typedef unsigned long long uint64_t; 40 40 41 typedef __u32 __address;42 typedef __u32 __native;41 typedef uint32_t uintptr_t; 42 typedef uint32_t unative_t; 43 43 44 44 #endif -
arch/ppc64/loader/types.h
rfec35544 r83253ad 32 32 #include <gentypes.h> 33 33 34 typedef signed char __s8;34 typedef signed char int8_t; 35 35 36 typedef unsigned char __u8;37 typedef unsigned short __u16;38 typedef unsigned int __u32;39 typedef unsigned long __u64;36 typedef unsigned char uint8_t; 37 typedef unsigned short uint16_t; 38 typedef unsigned int uint32_t; 39 typedef unsigned long uint64_t; 40 40 41 typedef __u64 __address;42 typedef __u64 __native;41 typedef uint64_t uintptr_t; 42 typedef uint64_t unative_t; 43 43 44 44 #endif -
arch/sparc64/loader/types.h
rfec35544 r83253ad 32 32 #include <gentypes.h> 33 33 34 typedef signed char __s8;34 typedef signed char int8_t; 35 35 36 typedef unsigned char __u8;37 typedef unsigned short __u16;38 typedef unsigned int __u32;39 typedef unsigned long __u64;36 typedef unsigned char uint8_t; 37 typedef unsigned short uint16_t; 38 typedef unsigned int uint32_t; 39 typedef unsigned long uint64_t; 40 40 41 typedef __u64 __address;42 typedef __u64 __native;41 typedef uint64_t uintptr_t; 42 typedef uint64_t unative_t; 43 43 44 44 #endif -
generic/printf.c
rfec35544 r83253ad 57 57 * 58 58 */ 59 static void print_fixed_hex(const __u64num, const int width)59 static void print_fixed_hex(const uint64_t num, const int width) 60 60 { 61 61 int i; … … 76 76 * 77 77 */ 78 static void print_number(const __nativenum, const unsigned int base)78 static void print_number(const unative_t num, const unsigned int base) 79 79 { 80 80 int val = num; 81 char d[sizeof( __native) * 8 + 1]; /* this is good enough even for base == 2 */82 int i = sizeof( __native) * 8 - 1;81 char d[sizeof(unative_t) * 8 + 1]; /* this is good enough even for base == 2 */ 82 int i = sizeof(unative_t) * 8 - 1; 83 83 84 84 do { … … 86 86 } while (val /= base); 87 87 88 d[sizeof( __native) * 8] = 0;88 d[sizeof(unative_t) * 8] = 0; 89 89 puts(&d[i + 1]); 90 90 } … … 183 183 puts("0x"); 184 184 case 'p': 185 print_fixed_hex(va_arg(ap, __native), sizeof(__native));185 print_fixed_hex(va_arg(ap, unative_t), sizeof(unative_t)); 186 186 goto loop; 187 187 … … 189 189 puts("0x"); 190 190 case 'q': 191 print_fixed_hex(va_arg(ap, __u64), INT64);191 print_fixed_hex(va_arg(ap, uint64_t), INT64); 192 192 goto loop; 193 193 … … 195 195 puts("0x"); 196 196 case 'l': 197 print_fixed_hex(va_arg(ap, __native), INT32);197 print_fixed_hex(va_arg(ap, unative_t), INT32); 198 198 goto loop; 199 199 … … 201 201 puts("0x"); 202 202 case 'w': 203 print_fixed_hex(va_arg(ap, __native), INT16);203 print_fixed_hex(va_arg(ap, unative_t), INT16); 204 204 goto loop; 205 205 … … 207 207 puts("0x"); 208 208 case 'b': 209 print_fixed_hex(va_arg(ap, __native), INT8);209 print_fixed_hex(va_arg(ap, unative_t), INT8); 210 210 goto loop; 211 211 … … 214 214 */ 215 215 case 'd': 216 print_number(va_arg(ap, __native), 10);216 print_number(va_arg(ap, unative_t), 10); 217 217 goto loop; 218 218 … … 220 220 puts("0x"); 221 221 case 'x': 222 print_number(va_arg(ap, __native), 16);222 print_number(va_arg(ap, unative_t), 16); 223 223 goto loop; 224 224
Note:
See TracChangeset
for help on using the changeset viewer.