diff options
author | Markus Klotzbuecher <mk@denx.de> | 2008-08-04 19:18:14 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@denx.de> | 2008-08-04 19:18:14 +0200 |
commit | 0f2b5d8ec0969a5b0992f5031bf3c61117a41d59 (patch) | |
tree | fc05bf5db93e5a9c1712d24a5efdff94685063c2 /include/asm-avr32/sysreg.h | |
parent | ab06bddb04ed4be50a8f9ad5f94fa23953a734e3 (diff) | |
parent | 81091f58f0c58ecd26c5b05de2ae20ca6cdb521c (diff) |
Merge branch 'master' of git://www.denx.de/git/u-boot
Diffstat (limited to 'include/asm-avr32/sysreg.h')
-rw-r--r-- | include/asm-avr32/sysreg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-avr32/sysreg.h b/include/asm-avr32/sysreg.h index 72ad49e5e2..4f6970448b 100644 --- a/include/asm-avr32/sysreg.h +++ b/include/asm-avr32/sysreg.h @@ -273,7 +273,9 @@ | SYSREG_BF(name,value)) /* Register access macros */ -#define sysreg_read(reg) __builtin_mfsr(SYSREG_##reg) -#define sysreg_write(reg, value) __builtin_mtsr(SYSREG_##reg, value) +#define sysreg_read(reg) \ + ((unsigned long)__builtin_mfsr(SYSREG_##reg)) +#define sysreg_write(reg, value) \ + __builtin_mtsr(SYSREG_##reg, value) #endif /* __ASM_AVR32_SYSREG_H__ */ |