提交 020f9e16 编写于 作者: G Greg Ungerer 提交者: Linus Torvalds

m68knommu: fix reset register address casting

Fix types used for reset register address setup.
Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 906a2621
...@@ -296,7 +296,7 @@ cmpxchg(volatile int *p, int old, int new) ...@@ -296,7 +296,7 @@ cmpxchg(volatile int *p, int old, int new)
({ \ ({ \
unsigned char volatile *reset; \ unsigned char volatile *reset; \
asm("move.w #0x2700, %sr"); \ asm("move.w #0x2700, %sr"); \
reset = ((volatile unsigned short *)(MCF_IPSBAR + 0x110000)); \ reset = ((volatile unsigned char *)(MCF_IPSBAR + 0x110000)); \
while(1) \ while(1) \
*reset |= (0x01 << 7);\ *reset |= (0x01 << 7);\
}) })
...@@ -318,7 +318,7 @@ cmpxchg(volatile int *p, int old, int new) ...@@ -318,7 +318,7 @@ cmpxchg(volatile int *p, int old, int new)
({ \ ({ \
unsigned char volatile *reset; \ unsigned char volatile *reset; \
asm("move.w #0x2700, %sr"); \ asm("move.w #0x2700, %sr"); \
reset = ((volatile unsigned short *)(MCF_IPSBAR + 0xA0000)); \ reset = ((volatile unsigned char *)(MCF_IPSBAR + 0xA0000)); \
while(1) \ while(1) \
*reset |= 0x80; \ *reset |= 0x80; \
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册