Subversion Repositories HelenOS

Rev

Rev 1881 | Rev 1885 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1881 Rev 1882
Line 106... Line 106...
106
static inline void tick_write(uint64_t v)
106
static inline void tick_write(uint64_t v)
107
{
107
{
108
    __asm__ volatile ("wrpr %0, %1, %%tick\n" : : "r" (v), "i" (0));
108
    __asm__ volatile ("wrpr %0, %1, %%tick\n" : : "r" (v), "i" (0));
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
/** Read SOFTINT Register.
133
/** Read SOFTINT Register.
112
 *
134
 *
113
 * @return Value of SOFTINT register.
135
 * @return Value of SOFTINT register.
114
 */
136
 */
115
static inline uint64_t softint_read(void)
137
static inline uint64_t softint_read(void)