summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)