Changeset b994a60 in mainline for arch/ia64/include/asm.h
- Timestamp:
- 2006-03-09T12:44:27Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 901122b
- Parents:
- cd373bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/asm.h
rcd373bb rb994a60 49 49 } 50 50 51 /** Return Processor State Register. 52 * 53 * @return PSR. 54 */ 55 static inline __u64 psr_read(void) 56 { 57 __u64 v; 58 59 __asm__ volatile ("mov %0 = psr\n" : "=r" (v)); 60 61 return v; 62 } 63 51 64 /** Read IVA (Interruption Vector Address). 52 65 * … … 233 246 static inline ipl_t interrupts_read(void) 234 247 { 235 __u64 v; 236 237 __asm__ volatile ("mov %0 = psr\n" : "=r" (v)); 238 239 return (ipl_t) v; 248 return (ipl_t) psr_read(); 240 249 } 241 250 … … 250 259 extern void asm_delay_loop(__u32 t); 251 260 261 extern void switch_to_userspace(__address entry, __address sp, __address bsp, __u64 ipsr, __u64 rsc); 262 252 263 #endif
Note:
See TracChangeset
for help on using the changeset viewer.