Changeset 7f1c620 in mainline for arch/ia64/include/asm.h
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/asm.h
r991779c5 r7f1c620 46 46 * The stack must start on page boundary. 47 47 */ 48 static inline __addressget_stack_base(void)49 { 50 __u64v;48 static inline uintptr_t get_stack_base(void) 49 { 50 uint64_t v; 51 51 52 52 __asm__ volatile ("and %0 = %1, r12" : "=r" (v) : "r" (~(STACK_SIZE-1))); … … 59 59 * @return PSR. 60 60 */ 61 static inline __u64psr_read(void)62 { 63 __u64v;61 static inline uint64_t psr_read(void) 62 { 63 uint64_t v; 64 64 65 65 __asm__ volatile ("mov %0 = psr\n" : "=r" (v)); … … 72 72 * @return Return location of interruption vector table. 73 73 */ 74 static inline __u64iva_read(void)75 { 76 __u64v;74 static inline uint64_t iva_read(void) 75 { 76 uint64_t v; 77 77 78 78 __asm__ volatile ("mov %0 = cr.iva\n" : "=r" (v)); … … 85 85 * @param v New location of interruption vector table. 86 86 */ 87 static inline void iva_write( __u64v)87 static inline void iva_write(uint64_t v) 88 88 { 89 89 __asm__ volatile ("mov cr.iva = %0\n" : : "r" (v)); … … 95 95 * @return Highest priority, pending, unmasked external interrupt vector. 96 96 */ 97 static inline __u64ivr_read(void)98 { 99 __u64v;97 static inline uint64_t ivr_read(void) 98 { 99 uint64_t v; 100 100 101 101 __asm__ volatile ("mov %0 = cr.ivr\n" : "=r" (v)); … … 108 108 * @param v New counter value. 109 109 */ 110 static inline void itc_write( __u64v)110 static inline void itc_write(uint64_t v) 111 111 { 112 112 __asm__ volatile ("mov ar.itc = %0\n" : : "r" (v)); … … 117 117 * @return Current counter value. 118 118 */ 119 static inline __u64itc_read(void)120 { 121 __u64v;119 static inline uint64_t itc_read(void) 120 { 121 uint64_t v; 122 122 123 123 __asm__ volatile ("mov %0 = ar.itc\n" : "=r" (v)); … … 130 130 * @param v New match value. 131 131 */ 132 static inline void itm_write( __u64v)132 static inline void itm_write(uint64_t v) 133 133 { 134 134 __asm__ volatile ("mov cr.itm = %0\n" : : "r" (v)); … … 139 139 * @return Match value. 140 140 */ 141 static inline __u64itm_read(void)142 { 143 __u64v;141 static inline uint64_t itm_read(void) 142 { 143 uint64_t v; 144 144 145 145 __asm__ volatile ("mov %0 = cr.itm\n" : "=r" (v)); … … 152 152 * @return Current vector and mask bit. 153 153 */ 154 static inline __u64itv_read(void)155 { 156 __u64v;154 static inline uint64_t itv_read(void) 155 { 156 uint64_t v; 157 157 158 158 __asm__ volatile ("mov %0 = cr.itv\n" : "=r" (v)); … … 165 165 * @param v New vector and mask bit. 166 166 */ 167 static inline void itv_write( __u64v)167 static inline void itv_write(uint64_t v) 168 168 { 169 169 __asm__ volatile ("mov cr.itv = %0\n" : : "r" (v)); … … 174 174 * @param v This value is ignored. 175 175 */ 176 static inline void eoi_write( __u64v)176 static inline void eoi_write(uint64_t v) 177 177 { 178 178 __asm__ volatile ("mov cr.eoi = %0\n" : : "r" (v)); … … 183 183 * @return Current value of TPR. 184 184 */ 185 static inline __u64tpr_read(void)186 { 187 __u64v;185 static inline uint64_t tpr_read(void) 186 { 187 uint64_t v; 188 188 189 189 __asm__ volatile ("mov %0 = cr.tpr\n" : "=r" (v)); … … 196 196 * @param v New value of TPR. 197 197 */ 198 static inline void tpr_write( __u64v)198 static inline void tpr_write(uint64_t v) 199 199 { 200 200 __asm__ volatile ("mov cr.tpr = %0\n" : : "r" (v)); … … 210 210 static ipl_t interrupts_disable(void) 211 211 { 212 __u64v;212 uint64_t v; 213 213 214 214 __asm__ volatile ( … … 231 231 static ipl_t interrupts_enable(void) 232 232 { 233 __u64v;233 uint64_t v; 234 234 235 235 __asm__ volatile ( … … 276 276 extern void cpu_halt(void); 277 277 extern void cpu_sleep(void); 278 extern void asm_delay_loop( __u32t);279 280 extern void switch_to_userspace( __address entry, __address sp, __address bsp, __address uspace_uarg, __u64 ipsr, __u64rsc);278 extern void asm_delay_loop(uint32_t t); 279 280 extern void switch_to_userspace(uintptr_t entry, uintptr_t sp, uintptr_t bsp, uintptr_t uspace_uarg, uint64_t ipsr, uint64_t rsc); 281 281 282 282 #endif
Note:
See TracChangeset
for help on using the changeset viewer.