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:
parent
36aea0f17e
commit
3e20261f8a
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user