mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Add inlines for mtsrin and mfsrin.
This commit is contained in:
parent
3db8420666
commit
b2df36e7d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94834
@ -67,6 +67,23 @@ mfmsr(void)
|
||||
return (value);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
mtsrin(vm_offset_t va, register_t value)
|
||||
{
|
||||
|
||||
__asm __volatile ("mtsrin %0,%1" :: "r"(value), "r"(va));
|
||||
}
|
||||
|
||||
static __inline register_t
|
||||
mfsrin(vm_offset_t va)
|
||||
{
|
||||
register_t value;
|
||||
|
||||
__asm __volatile ("mfsrin %0,%1" : "=r"(value) : "r"(va));
|
||||
|
||||
return (value);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
mtdec(register_t value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user