diff --git a/sys/sparc64/include/cpufunc.h b/sys/sparc64/include/cpufunc.h index 861b1bdcfe10..26f3c05fa52d 100644 --- a/sys/sparc64/include/cpufunc.h +++ b/sys/sparc64/include/cpufunc.h @@ -80,6 +80,10 @@ __asm __volatile("flushw" : :); \ } while (0) +#define mov(val, reg) do { \ + __asm __volatile("mov %0, %" __XSTRING(reg) : : "r" (val)); \ +} while (0) + /* Generate ld*a/st*a functions for non-constant ASI's. */ #define LDNC_GEN(tp, o) \ static __inline tp \