Changeset 39494010 in mainline for arch/sparc64/include/asm.h
- Timestamp:
- 2005-12-26T01:05:47Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1120276
- Parents:
- 5b1ced0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/asm.h
r5b1ced0 r39494010 101 101 } 102 102 103 /** Read SOFTINT Register. 104 * 105 * @return Value of SOFTINT register. 106 */ 107 static inline __u64 softint_read(void) 108 { 109 __u64 v; 110 111 __asm__ volatile ("rd %%softint, %0\n" : "=r" (v)); 112 113 return v; 114 } 115 116 /** Write SOFTINT Register. 117 * 118 * @param New value of SOFTINT register. 119 */ 120 static inline void softint_write(__u64 v) 121 { 122 __asm__ volatile ("wr %0, %1, %%softint\n" : : "r" (v), "i" (0)); 123 } 103 124 104 125 /** Enable interrupts.
Note:
See TracChangeset
for help on using the changeset viewer.