Add a mov() macro, which is used in conjunction with the register defines

for setting reserved global registers from c.
This commit is contained in:
Jake Burkholder 2002-01-08 04:36:01 +00:00
parent 2a32c6cea1
commit c0e12e9356
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89033

View File

@ -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 \