summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-11-14 06:51:19 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2014-02-11 02:07:51 (GMT)
commit3e450fcb06cce54097b30ceba6256aed91aa9d9b (patch)
tree11eb8a72cf61ec08af40d99210866711c687eed4
parent77ee30d3655be620a4c9cd722ddaa3192c722644 (diff)
downloadabc8000-3e450fcb06cce54097b30ceba6256aed91aa9d9b.zip
abc8000-3e450fcb06cce54097b30ceba6256aed91aa9d9b.tar.gz
abc8000-3e450fcb06cce54097b30ceba6256aed91aa9d9b.tar.bz2
abc8000-3e450fcb06cce54097b30ceba6256aed91aa9d9b.tar.xz
cpu.h: fix the register constraints for MOVE to/from SR
These can take any EA *except* an address register...
-rw-r--r--data/sysrom/include/sys/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/sysrom/include/sys/cpu.h b/data/sysrom/include/sys/cpu.h
index 818eb5b..cdf77ae 100644
--- a/data/sysrom/include/sys/cpu.h
+++ b/data/sysrom/include/sys/cpu.h
@@ -10,13 +10,13 @@
static inline uint16_t cpu_get_status(void)
{
uint16_t __v;
- asm volatile("move %%sr,%0" : "=g" (__v));
+ asm volatile("move %%sr,%0" : "=dm" (__v));
return __v;
}
static inline void cpu_set_status(uint16_t __v)
{
- asm volatile("move %0,%%sr" : : "g" (__v));
+ asm volatile("move %0,%%sr" : : "dmi" (__v));
}
static inline unsigned int cpu_get_spl(void)