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 2002-01-08 04:36:01 +00:00
parent 36aea0f17e
commit 3e20261f8a

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 \