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>2011-11-14 06:51:19 (GMT)
commit60fa56d7756fb90570275f20b53c5b3eb6b90df2 (patch)
tree3ded7cbb43c59ed6aff1a019e4e93d199c184952
parent85199fd9322a0b2fc561f557dde7530812fccb20 (diff)
downloadabc8000-old-60fa56d7756fb90570275f20b53c5b3eb6b90df2.zip
abc8000-old-60fa56d7756fb90570275f20b53c5b3eb6b90df2.tar.gz
abc8000-old-60fa56d7756fb90570275f20b53c5b3eb6b90df2.tar.bz2
abc8000-old-60fa56d7756fb90570275f20b53c5b3eb6b90df2.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)