Changeset 6eabb6e6 in mainline for kernel/arch/sparc64/include/asm.h
- Timestamp:
- 2006-09-13T13:16:30Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34d9469e
- Parents:
- 9a5b556
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/asm.h
r9a5b556 r6eabb6e6 109 109 } 110 110 111 /** Read FPRS Register. 112 * 113 * @return Value of FPRS register. 114 */ 115 static inline uint64_t fprs_read(void) 116 { 117 uint64_t v; 118 119 __asm__ volatile ("rd %%fprs, %0\n" : "=r" (v)); 120 121 return v; 122 } 123 124 /** Write FPRS Register. 125 * 126 * @param v New value of FPRS register. 127 */ 128 static inline void fprs_write(uint64_t v) 129 { 130 __asm__ volatile ("wr %0, %1, %%fprs\n" : : "r" (v), "i" (0)); 131 } 132 111 133 /** Read SOFTINT Register. 112 134 *
Note:
See TracChangeset
for help on using the changeset viewer.