Subversion Repositories HelenOS

Rev

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

Rev 613 Rev 640
Line 83... Line 83...
83
    __asm__ volatile ("and %%o6, %1, %0\n" : "=r" (v) : "r" (~(STACK_SIZE-1)));
83
    __asm__ volatile ("and %%o6, %1, %0\n" : "=r" (v) : "r" (~(STACK_SIZE-1)));
84
   
84
   
85
    return v;
85
    return v;
86
}
86
}
87
 
87
 
-
 
88
/** Read Version Register.
-
 
89
 *
-
 
90
 * @return Value of VER register.
-
 
91
 */
-
 
92
static inline __u64 ver_read(void)
-
 
93
{
-
 
94
    __u64 v;
-
 
95
   
-
 
96
    __asm__ volatile ("rdpr %%ver, %0\n" : "=r" (v));
-
 
97
   
-
 
98
    return v;
-
 
99
}
-
 
100
 
88
/** Read Trap Base Address register.
101
/** Read Trap Base Address register.
89
 *
102
 *
90
 * @return Current value in TBA.
103
 * @return Current value in TBA.
91
 */
104
 */
92
static inline __u64 tba_read(void)
105
static inline __u64 tba_read(void)