Changeset 7f1c620 in mainline for arch/sparc64/include
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- Location:
- arch/sparc64/include
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/asm.h
r991779c5 r7f1c620 45 45 * @return Value of PSTATE register. 46 46 */ 47 static inline __u64pstate_read(void)48 { 49 __u64v;47 static inline uint64_t pstate_read(void) 48 { 49 uint64_t v; 50 50 51 51 __asm__ volatile ("rdpr %%pstate, %0\n" : "=r" (v)); … … 58 58 * @param v New value of PSTATE register. 59 59 */ 60 static inline void pstate_write( __u64v)60 static inline void pstate_write(uint64_t v) 61 61 { 62 62 __asm__ volatile ("wrpr %0, %1, %%pstate\n" : : "r" (v), "i" (0)); … … 67 67 * @return Value of TICK_comapre register. 68 68 */ 69 static inline __u64tick_compare_read(void)70 { 71 __u64v;69 static inline uint64_t tick_compare_read(void) 70 { 71 uint64_t v; 72 72 73 73 __asm__ volatile ("rd %%tick_cmpr, %0\n" : "=r" (v)); … … 80 80 * @param v New value of TICK_comapre register. 81 81 */ 82 static inline void tick_compare_write( __u64v)82 static inline void tick_compare_write(uint64_t v) 83 83 { 84 84 __asm__ volatile ("wr %0, %1, %%tick_cmpr\n" : : "r" (v), "i" (0)); … … 89 89 * @return Value of TICK register. 90 90 */ 91 static inline __u64tick_read(void)92 { 93 __u64v;91 static inline uint64_t tick_read(void) 92 { 93 uint64_t v; 94 94 95 95 __asm__ volatile ("rdpr %%tick, %0\n" : "=r" (v)); … … 102 102 * @param v New value of TICK register. 103 103 */ 104 static inline void tick_write( __u64v)104 static inline void tick_write(uint64_t v) 105 105 { 106 106 __asm__ volatile ("wrpr %0, %1, %%tick\n" : : "r" (v), "i" (0)); … … 111 111 * @return Value of SOFTINT register. 112 112 */ 113 static inline __u64softint_read(void)114 { 115 __u64v;113 static inline uint64_t softint_read(void) 114 { 115 uint64_t v; 116 116 117 117 __asm__ volatile ("rd %%softint, %0\n" : "=r" (v)); … … 124 124 * @param v New value of SOFTINT register. 125 125 */ 126 static inline void softint_write( __u64v)126 static inline void softint_write(uint64_t v) 127 127 { 128 128 __asm__ volatile ("wr %0, %1, %%softint\n" : : "r" (v), "i" (0)); … … 135 135 * @param v New value of CLEAR_SOFTINT register. 136 136 */ 137 static inline void clear_softint_write( __u64v)137 static inline void clear_softint_write(uint64_t v) 138 138 { 139 139 __asm__ volatile ("wr %0, %1, %%clear_softint\n" : : "r" (v), "i" (0)); … … 149 149 static inline ipl_t interrupts_enable(void) { 150 150 pstate_reg_t pstate; 151 __u64value;151 uint64_t value; 152 152 153 153 value = pstate_read(); … … 168 168 static inline ipl_t interrupts_disable(void) { 169 169 pstate_reg_t pstate; 170 __u64value;170 uint64_t value; 171 171 172 172 value = pstate_read(); … … 208 208 * The stack must start on page boundary. 209 209 */ 210 static inline __addressget_stack_base(void)211 { 212 __addressv;210 static inline uintptr_t get_stack_base(void) 211 { 212 uintptr_t v; 213 213 214 214 __asm__ volatile ("and %%sp, %1, %0\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); … … 221 221 * @return Value of VER register. 222 222 */ 223 static inline __u64ver_read(void)224 { 225 __u64v;223 static inline uint64_t ver_read(void) 224 { 225 uint64_t v; 226 226 227 227 __asm__ volatile ("rdpr %%ver, %0\n" : "=r" (v)); … … 234 234 * @return Current value in TBA. 235 235 */ 236 static inline __u64tba_read(void)237 { 238 __u64v;236 static inline uint64_t tba_read(void) 237 { 238 uint64_t v; 239 239 240 240 __asm__ volatile ("rdpr %%tba, %0\n" : "=r" (v)); … … 247 247 * @return Current value in TPC. 248 248 */ 249 static inline __u64tpc_read(void)250 { 251 __u64v;249 static inline uint64_t tpc_read(void) 250 { 251 uint64_t v; 252 252 253 253 __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v)); … … 260 260 * @return Current value in TL. 261 261 */ 262 static inline __u64tl_read(void)263 { 264 __u64v;262 static inline uint64_t tl_read(void) 263 { 264 uint64_t v; 265 265 266 266 __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v)); … … 273 273 * @param v New value of TBA. 274 274 */ 275 static inline void tba_write( __u64v)275 static inline void tba_write(uint64_t v) 276 276 { 277 277 __asm__ volatile ("wrpr %0, %1, %%tba\n" : : "r" (v), "i" (0)); 278 278 } 279 279 280 /** Load __u64from alternate space.280 /** Load uint64_t from alternate space. 281 281 * 282 282 * @param asi ASI determining the alternate space. … … 285 285 * @return Value read from the virtual address in the specified address space. 286 286 */ 287 static inline __u64 asi_u64_read(asi_t asi, __addressva)288 { 289 __u64v;287 static inline uint64_t asi_u64_read(asi_t asi, uintptr_t va) 288 { 289 uint64_t v; 290 290 291 291 __asm__ volatile ("ldxa [%1] %2, %0\n" : "=r" (v) : "r" (va), "i" (asi)); … … 294 294 } 295 295 296 /** Store __u64to alternate space.296 /** Store uint64_t to alternate space. 297 297 * 298 298 * @param asi ASI determining the alternate space. … … 300 300 * @param v Value to be written. 301 301 */ 302 static inline void asi_u64_write(asi_t asi, __address va, __u64v)302 static inline void asi_u64_write(asi_t asi, uintptr_t va, uint64_t v) 303 303 { 304 304 __asm__ volatile ("stxa %0, [%1] %2\n" : : "r" (v), "r" (va), "i" (asi) : "memory"); … … 309 309 void cpu_halt(void); 310 310 void cpu_sleep(void); 311 void asm_delay_loop( __u32t);311 void asm_delay_loop(uint32_t t); 312 312 313 313 #endif -
arch/sparc64/include/atomic.h
r991779c5 r7f1c620 50 50 static inline long atomic_add(atomic_t *val, int i) 51 51 { 52 __u64a, b;53 volatile __u64 x = (__u64) &val->count;52 uint64_t a, b; 53 volatile uint64_t x = (uint64_t) &val->count; 54 54 55 55 __asm__ volatile ( … … 61 61 "bne 0b\n" /* The operation failed and must be attempted again if a != b. */ 62 62 "nop\n" 63 : "=m" (*(( __u64*)x)), "=r" (a), "=r" (b)63 : "=m" (*((uint64_t *)x)), "=r" (a), "=r" (b) 64 64 : "r" (i) 65 65 ); -
arch/sparc64/include/byteorder.h
r991779c5 r7f1c620 39 39 #include <byteorder.h> 40 40 41 static inline __u64 __u64_le2host(__u64n)41 static inline uint64_t uint64_t_le2host(uint64_t n) 42 42 { 43 return __u64_byteorder_swap(n);43 return uint64_t_byteorder_swap(n); 44 44 } 45 45 46 static inline __native __native_le2host(__nativen)46 static inline unative_t unative_t_le2host(unative_t n) 47 47 { 48 return __u64_byteorder_swap(n);48 return uint64_t_byteorder_swap(n); 49 49 } 50 50 -
arch/sparc64/include/context.h
r991779c5 r7f1c620 55 55 56 56 #define context_set(c, _pc, stack, size) \ 57 (c)->pc = (( __address) _pc) - 8; \58 (c)->sp = (( __address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA); \57 (c)->pc = ((uintptr_t) _pc) - 8; \ 58 (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA); \ 59 59 (c)->fp = -STACK_BIAS; \ 60 60 (c)->cleanwin = 0 … … 66 66 */ 67 67 struct context { 68 __addresssp; /* %o6 */69 __addresspc; /* %o7 */70 __u64i0;71 __u64i1;72 __u64i2;73 __u64i3;74 __u64i4;75 __u64i5;76 __addressfp; /* %i6 */77 __addressi7;78 __u64l0;79 __u64l1;80 __u64l2;81 __u64l3;82 __u64l4;83 __u64l5;84 __u64l6;85 __u64l7;68 uintptr_t sp; /* %o6 */ 69 uintptr_t pc; /* %o7 */ 70 uint64_t i0; 71 uint64_t i1; 72 uint64_t i2; 73 uint64_t i3; 74 uint64_t i4; 75 uint64_t i5; 76 uintptr_t fp; /* %i6 */ 77 uintptr_t i7; 78 uint64_t l0; 79 uint64_t l1; 80 uint64_t l2; 81 uint64_t l3; 82 uint64_t l4; 83 uint64_t l5; 84 uint64_t l6; 85 uint64_t l7; 86 86 ipl_t ipl; 87 __u64cleanwin;87 uint64_t cleanwin; 88 88 }; 89 89 -
arch/sparc64/include/drivers/i8042.h
r991779c5 r7f1c620 46 46 #define LAST_REG DATA_REG 47 47 48 extern volatile __u8*kbd_virt_address;48 extern volatile uint8_t *kbd_virt_address; 49 49 50 static inline void i8042_data_write( __u8data)50 static inline void i8042_data_write(uint8_t data) 51 51 { 52 52 kbd_virt_address[DATA_REG] = data; 53 53 } 54 54 55 static inline __u8i8042_data_read(void)55 static inline uint8_t i8042_data_read(void) 56 56 { 57 57 return kbd_virt_address[DATA_REG]; 58 58 } 59 59 60 static inline __u8i8042_status_read(void)60 static inline uint8_t i8042_status_read(void) 61 61 { 62 62 return kbd_virt_address[STATUS_REG]; 63 63 } 64 64 65 static inline void i8042_command_write( __u8command)65 static inline void i8042_command_write(uint8_t command) 66 66 { 67 67 kbd_virt_address[COMMAND_REG] = command; -
arch/sparc64/include/faddr.h
r991779c5 r7f1c620 38 38 #include <arch/types.h> 39 39 40 #define FADDR(fptr) (( __address) (fptr))40 #define FADDR(fptr) ((uintptr_t) (fptr)) 41 41 42 42 #endif -
arch/sparc64/include/interrupt.h
r991779c5 r7f1c620 55 55 }; 56 56 57 static inline void istate_set_retaddr(istate_t *istate, __addressretaddr)57 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) 58 58 { 59 59 /* TODO */ … … 64 64 return 0; 65 65 } 66 static inline __nativeistate_get_pc(istate_t *istate)66 static inline unative_t istate_get_pc(istate_t *istate) 67 67 { 68 68 /* TODO */ -
arch/sparc64/include/memstr.h
r991779c5 r7f1c620 38 38 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) 39 39 40 extern void memsetw( __address dst, size_t cnt, __u16x);41 extern void memsetb( __address dst, size_t cnt, __u8x);40 extern void memsetw(uintptr_t dst, size_t cnt, uint16_t x); 41 extern void memsetb(uintptr_t dst, size_t cnt, uint8_t x); 42 42 43 extern int memcmp( __address src, __addressdst, int cnt);43 extern int memcmp(uintptr_t src, uintptr_t dst, int cnt); 44 44 45 45 #endif -
arch/sparc64/include/mm/asid.h
r991779c5 r7f1c620 41 41 * On SPARC, Context means the same thing as ASID trough out the kernel. 42 42 */ 43 typedef __u16asid_t;43 typedef uint16_t asid_t; 44 44 45 45 #define ASID_MAX_ARCH 8191 /* 2^13 - 1 */ -
arch/sparc64/include/mm/frame.h
r991779c5 r7f1c620 45 45 46 46 union frame_address { 47 __addressaddress;47 uintptr_t address; 48 48 struct { 49 49 unsigned : 23; 50 __u64pfn : 28; /**< Physical Frame Number. */50 uint64_t pfn : 28; /**< Physical Frame Number. */ 51 51 unsigned offset : 13; /**< Offset. */ 52 52 } __attribute__ ((packed)); -
arch/sparc64/include/mm/mmu.h
r991779c5 r7f1c620 83 83 /** LSU Control Register. */ 84 84 union lsu_cr_reg { 85 __u64value;85 uint64_t value; 86 86 struct { 87 87 unsigned : 23; -
arch/sparc64/include/mm/page.h
r991779c5 r7f1c620 47 47 #include <genarch/mm/page_ht.h> 48 48 49 #define KA2PA(x) (( __address) (x))50 #define PA2KA(x) (( __address) (x))49 #define KA2PA(x) ((uintptr_t) (x)) 50 #define PA2KA(x) ((uintptr_t) (x)) 51 51 52 52 union page_address { 53 __addressaddress;53 uintptr_t address; 54 54 struct { 55 __u64vpn : 51; /**< Virtual Page Number. */55 uint64_t vpn : 51; /**< Virtual Page Number. */ 56 56 unsigned offset : 13; /**< Offset. */ 57 57 } __attribute__ ((packed)); -
arch/sparc64/include/mm/tlb.h
r991779c5 r7f1c620 57 57 58 58 union tlb_context_reg { 59 __u64v;59 uint64_t v; 60 60 struct { 61 61 unsigned long : 51; … … 70 70 /** I-/D-TLB Data Access Address in Alternate Space. */ 71 71 union tlb_data_access_addr { 72 __u64value;72 uint64_t value; 73 73 struct { 74 __u64: 55;74 uint64_t : 55; 75 75 unsigned tlb_entry : 6; 76 76 unsigned : 3; … … 82 82 /** I-/D-TLB Tag Read Register. */ 83 83 union tlb_tag_read_reg { 84 __u64value;84 uint64_t value; 85 85 struct { 86 __u64vpn : 51; /**< Virtual Address bits 63:13. */86 uint64_t vpn : 51; /**< Virtual Address bits 63:13. */ 87 87 unsigned context : 13; /**< Context identifier. */ 88 88 } __attribute__ ((packed)); … … 102 102 /** TLB Demap Operation Address. */ 103 103 union tlb_demap_addr { 104 __u64value;104 uint64_t value; 105 105 struct { 106 __u64vpn: 51; /**< Virtual Address bits 63:13. */106 uint64_t vpn: 51; /**< Virtual Address bits 63:13. */ 107 107 unsigned : 6; /**< Ignored. */ 108 108 unsigned type : 1; /**< The type of demap operation. */ … … 115 115 /** TLB Synchronous Fault Status Register. */ 116 116 union tlb_sfsr_reg { 117 __u64value;117 uint64_t value; 118 118 struct { 119 119 unsigned long : 39; /**< Implementation dependent. */ … … 137 137 * @return Current value of Primary Context Register. 138 138 */ 139 static inline __u64mmu_primary_context_read(void)139 static inline uint64_t mmu_primary_context_read(void) 140 140 { 141 141 return asi_u64_read(ASI_DMMU, VA_PRIMARY_CONTEXT_REG); … … 146 146 * @param v New value of Primary Context Register. 147 147 */ 148 static inline void mmu_primary_context_write( __u64v)148 static inline void mmu_primary_context_write(uint64_t v) 149 149 { 150 150 asi_u64_write(ASI_DMMU, VA_PRIMARY_CONTEXT_REG, v); … … 156 156 * @return Current value of Secondary Context Register. 157 157 */ 158 static inline __u64mmu_secondary_context_read(void)158 static inline uint64_t mmu_secondary_context_read(void) 159 159 { 160 160 return asi_u64_read(ASI_DMMU, VA_SECONDARY_CONTEXT_REG); … … 165 165 * @param v New value of Primary Context Register. 166 166 */ 167 static inline void mmu_secondary_context_write( __u64v)167 static inline void mmu_secondary_context_write(uint64_t v) 168 168 { 169 169 asi_u64_write(ASI_DMMU, VA_PRIMARY_CONTEXT_REG, v); … … 177 177 * @return Current value of specified IMMU TLB Data Access Register. 178 178 */ 179 static inline __u64itlb_data_access_read(index_t entry)179 static inline uint64_t itlb_data_access_read(index_t entry) 180 180 { 181 181 tlb_data_access_addr_t reg; … … 191 191 * @param value Value to be written. 192 192 */ 193 static inline void itlb_data_access_write(index_t entry, __u64value)193 static inline void itlb_data_access_write(index_t entry, uint64_t value) 194 194 { 195 195 tlb_data_access_addr_t reg; … … 207 207 * @return Current value of specified DMMU TLB Data Access Register. 208 208 */ 209 static inline __u64dtlb_data_access_read(index_t entry)209 static inline uint64_t dtlb_data_access_read(index_t entry) 210 210 { 211 211 tlb_data_access_addr_t reg; … … 221 221 * @param value Value to be written. 222 222 */ 223 static inline void dtlb_data_access_write(index_t entry, __u64value)223 static inline void dtlb_data_access_write(index_t entry, uint64_t value) 224 224 { 225 225 tlb_data_access_addr_t reg; … … 237 237 * @return Current value of specified IMMU TLB Tag Read Register. 238 238 */ 239 static inline __u64itlb_tag_read_read(index_t entry)239 static inline uint64_t itlb_tag_read_read(index_t entry) 240 240 { 241 241 tlb_tag_read_addr_t tag; … … 252 252 * @return Current value of specified DMMU TLB Tag Read Register. 253 253 */ 254 static inline __u64dtlb_tag_read_read(index_t entry)254 static inline uint64_t dtlb_tag_read_read(index_t entry) 255 255 { 256 256 tlb_tag_read_addr_t tag; … … 265 265 * @param v Value to be written. 266 266 */ 267 static inline void itlb_tag_access_write( __u64v)267 static inline void itlb_tag_access_write(uint64_t v) 268 268 { 269 269 asi_u64_write(ASI_IMMU, VA_IMMU_TAG_ACCESS, v); … … 275 275 * @return Current value of IMMU TLB Tag Access Register. 276 276 */ 277 static inline __u64itlb_tag_access_read(void)277 static inline uint64_t itlb_tag_access_read(void) 278 278 { 279 279 return asi_u64_read(ASI_IMMU, VA_IMMU_TAG_ACCESS); … … 284 284 * @param v Value to be written. 285 285 */ 286 static inline void dtlb_tag_access_write( __u64v)286 static inline void dtlb_tag_access_write(uint64_t v) 287 287 { 288 288 asi_u64_write(ASI_DMMU, VA_DMMU_TAG_ACCESS, v); … … 294 294 * @return Current value of DMMU TLB Tag Access Register. 295 295 */ 296 static inline __u64dtlb_tag_access_read(void)296 static inline uint64_t dtlb_tag_access_read(void) 297 297 { 298 298 return asi_u64_read(ASI_DMMU, VA_DMMU_TAG_ACCESS); … … 304 304 * @param v Value to be written. 305 305 */ 306 static inline void itlb_data_in_write( __u64v)306 static inline void itlb_data_in_write(uint64_t v) 307 307 { 308 308 asi_u64_write(ASI_ITLB_DATA_IN_REG, 0, v); … … 314 314 * @param v Value to be written. 315 315 */ 316 static inline void dtlb_data_in_write( __u64v)316 static inline void dtlb_data_in_write(uint64_t v) 317 317 { 318 318 asi_u64_write(ASI_DTLB_DATA_IN_REG, 0, v); … … 324 324 * @return Current content of I-SFSR register. 325 325 */ 326 static inline __u64itlb_sfsr_read(void)326 static inline uint64_t itlb_sfsr_read(void) 327 327 { 328 328 return asi_u64_read(ASI_IMMU, VA_IMMU_SFSR); … … 333 333 * @param v New value of I-SFSR register. 334 334 */ 335 static inline void itlb_sfsr_write( __u64v)335 static inline void itlb_sfsr_write(uint64_t v) 336 336 { 337 337 asi_u64_write(ASI_IMMU, VA_IMMU_SFSR, v); … … 343 343 * @return Current content of D-SFSR register. 344 344 */ 345 static inline __u64dtlb_sfsr_read(void)345 static inline uint64_t dtlb_sfsr_read(void) 346 346 { 347 347 return asi_u64_read(ASI_DMMU, VA_DMMU_SFSR); … … 352 352 * @param v New value of D-SFSR register. 353 353 */ 354 static inline void dtlb_sfsr_write( __u64v)354 static inline void dtlb_sfsr_write(uint64_t v) 355 355 { 356 356 asi_u64_write(ASI_DMMU, VA_DMMU_SFSR, v); … … 362 362 * @return Current content of D-SFAR register. 363 363 */ 364 static inline __u64dtlb_sfar_read(void)364 static inline uint64_t dtlb_sfar_read(void) 365 365 { 366 366 return asi_u64_read(ASI_DMMU, VA_DMMU_SFAR); … … 373 373 * @param page Address which is on the page to be demapped. 374 374 */ 375 static inline void itlb_demap(int type, int context_encoding, __addresspage)375 static inline void itlb_demap(int type, int context_encoding, uintptr_t page) 376 376 { 377 377 tlb_demap_addr_t da; … … 395 395 * @param page Address which is on the page to be demapped. 396 396 */ 397 static inline void dtlb_demap(int type, int context_encoding, __addresspage)397 static inline void dtlb_demap(int type, int context_encoding, uintptr_t page) 398 398 { 399 399 tlb_demap_addr_t da; … … 415 415 extern void fast_data_access_protection(void); 416 416 417 extern void dtlb_insert_mapping( __address page, __addressframe, int pagesize, bool locked, bool cacheable);417 extern void dtlb_insert_mapping(uintptr_t page, uintptr_t frame, int pagesize, bool locked, bool cacheable); 418 418 419 419 #endif -
arch/sparc64/include/mm/tte.h
r991779c5 r7f1c620 40 40 /** Translation Table Entry - Tag. */ 41 41 union tte_tag { 42 __u64value;42 uint64_t value; 43 43 struct { 44 44 unsigned g : 1; /**< Global. */ … … 46 46 unsigned context : 13; /**< Context identifier. */ 47 47 unsigned : 6; /**< Reserved. */ 48 __u64va_tag : 42; /**< Virtual Address Tag, bits 63:22. */48 uint64_t va_tag : 42; /**< Virtual Address Tag, bits 63:22. */ 49 49 } __attribute__ ((packed)); 50 50 }; … … 54 54 /** Translation Table Entry - Data. */ 55 55 union tte_data { 56 __u64value;56 uint64_t value; 57 57 struct { 58 58 unsigned v : 1; /**< Valid. */ -
arch/sparc64/include/register.h
r991779c5 r7f1c620 40 40 /** Version Register. */ 41 41 union ver_reg { 42 __u64value;42 uint64_t value; 43 43 struct { 44 __u16manuf; /**< Manufacturer code. */45 __u16impl; /**< Implementation code. */46 __u8mask; /**< Mask set revision. */44 uint16_t manuf; /**< Manufacturer code. */ 45 uint16_t impl; /**< Implementation code. */ 46 uint8_t mask; /**< Mask set revision. */ 47 47 unsigned : 8; 48 __u8maxtl;48 uint8_t maxtl; 49 49 unsigned : 3; 50 50 unsigned maxwin : 5; … … 55 55 /** Processor State Register. */ 56 56 union pstate_reg { 57 __u64value;57 uint64_t value; 58 58 struct { 59 __u64: 52;59 uint64_t : 52; 60 60 unsigned ig : 1; /**< Interrupt Globals. */ 61 61 unsigned mg : 1; /**< MMU Globals. */ … … 75 75 /** TICK Register. */ 76 76 union tick_reg { 77 __u64value;77 uint64_t value; 78 78 struct { 79 79 unsigned npt : 1; /**< Non-privileged Trap enable. */ 80 __u64counter : 63; /**< Elapsed CPU clck cycle counter. */80 uint64_t counter : 63; /**< Elapsed CPU clck cycle counter. */ 81 81 } __attribute__ ((packed)); 82 82 }; … … 85 85 /** TICK_compare Register. */ 86 86 union tick_compare_reg { 87 __u64value;87 uint64_t value; 88 88 struct { 89 89 unsigned int_dis : 1; /**< TICK_INT interrupt disabled flag. */ 90 __u64tick_cmpr : 63; /**< Compare value for TICK interrupts. */90 uint64_t tick_cmpr : 63; /**< Compare value for TICK interrupts. */ 91 91 } __attribute__ ((packed)); 92 92 }; … … 95 95 /** SOFTINT Register. */ 96 96 union softint_reg { 97 __u64value;97 uint64_t value; 98 98 struct { 99 __u64: 47;99 uint64_t : 47; 100 100 unsigned stick_int : 1; 101 101 unsigned int_level : 15; -
arch/sparc64/include/trap/trap.h
r991779c5 r7f1c620 43 43 { 44 44 /* Point TBA to kernel copy of OFW's trap table. */ 45 tba_write(( __u64) trap_table);45 tba_write((uint64_t) trap_table); 46 46 } 47 47 -
arch/sparc64/include/trap/trap_table.h
r991779c5 r7f1c620 48 48 #ifndef __ASM__ 49 49 struct trap_table_entry { 50 __u8octets[TRAP_TABLE_ENTRY_SIZE];50 uint8_t octets[TRAP_TABLE_ENTRY_SIZE]; 51 51 } __attribute__ ((packed)); 52 52 -
arch/sparc64/include/types.h
r991779c5 r7f1c620 38 38 #define NULL 0 39 39 40 typedef signed char __s8;41 typedef signed short __s16;42 typedef signed int __s32;43 typedef signed long __s64;40 typedef signed char int8_t; 41 typedef signed short int16_t; 42 typedef signed int int32_t; 43 typedef signed long int64_t; 44 44 45 typedef unsigned char __u8;46 typedef unsigned short __u16;47 typedef unsigned int __u32;48 typedef unsigned long __u64;45 typedef unsigned char uint8_t; 46 typedef unsigned short uint16_t; 47 typedef unsigned int uint32_t; 48 typedef unsigned long uint64_t; 49 49 50 typedef __u64 __address;51 typedef __u64pfn_t;50 typedef uint64_t uintptr_t; 51 typedef uint64_t pfn_t; 52 52 53 typedef __u64ipl_t;53 typedef uint64_t ipl_t; 54 54 55 typedef __u64 __native;56 typedef __s64 __snative;55 typedef uint64_t unative_t; 56 typedef int64_t native_t; 57 57 58 58 typedef struct pte pte_t; 59 59 60 typedef __u8asi_t;60 typedef uint8_t asi_t; 61 61 62 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.