hack for stimecmp
This commit is contained in:
parent
6bd4e66b23
commit
3b6dc1bb98
@ -179,14 +179,14 @@ static inline uint64
|
||||
r_stimecmp()
|
||||
{
|
||||
uint64 x;
|
||||
asm volatile("csrr %0, stimecmp" : "=r" (x) );
|
||||
asm volatile("csrr %0, 0x14d" : "=r" (x) );
|
||||
return x;
|
||||
}
|
||||
|
||||
static inline void
|
||||
w_stimecmp(uint64 x)
|
||||
{
|
||||
asm volatile("csrw stimecmp, %0" : : "r" (x));
|
||||
asm volatile("csrw 0x14d, %0" : : "r" (x));
|
||||
}
|
||||
|
||||
// Machine Environment Configuration Register
|
||||
|
||||
Loading…
Reference in New Issue
Block a user