Changes in kernel/arch/sparc64/include/sun4u/asm.h [eb79d60:7a0359b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/sun4u/asm.h
reb79d60 r7a0359b 27 27 */ 28 28 29 /** @addtogroup sparc64 29 /** @addtogroup sparc64 30 30 * @{ 31 31 */ … … 36 36 #define KERN_sparc64_sun4u_ASM_H_ 37 37 38 extern uint64_t read_from_ag_g7(void); 39 extern void write_to_ag_g6(uint64_t val); 40 extern void write_to_ag_g7(uint64_t val); 41 extern void write_to_ig_g6(uint64_t val); 42 38 #include <trace.h> 43 39 44 40 /** Read Version Register. 45 41 * 46 42 * @return Value of VER register. 43 * 47 44 */ 48 static inline uint64_t ver_read(void)45 NO_TRACE static inline uint64_t ver_read(void) 49 46 { 50 47 uint64_t v; 51 48 52 asm volatile ("rdpr %%ver, %0\n" : "=r" (v)); 49 asm volatile ( 50 "rdpr %%ver, %[v]\n" 51 : [v] "=r" (v) 52 ); 53 53 54 54 return v; 55 55 } 56 57 extern uint64_t read_from_ag_g7(void); 58 extern void write_to_ag_g6(uint64_t); 59 extern void write_to_ag_g7(uint64_t); 60 extern void write_to_ig_g6(uint64_t); 56 61 57 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.