Add inlines for mtsrin and mfsrin.

This commit is contained in:
Benno Rice 2002-04-16 11:45:09 +00:00
parent 3db8420666
commit b2df36e7d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94834

View File

@ -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)
{