mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
m68knommu: fix reset register address casting
Fix types used for reset register address setup. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
906a2621fc
commit
020f9e16c3
1 changed files with 2 additions and 2 deletions
|
@ -296,7 +296,7 @@ cmpxchg(volatile int *p, int old, int new)
|
|||
({ \
|
||||
unsigned char volatile *reset; \
|
||||
asm("move.w #0x2700, %sr"); \
|
||||
reset = ((volatile unsigned short *)(MCF_IPSBAR + 0x110000)); \
|
||||
reset = ((volatile unsigned char *)(MCF_IPSBAR + 0x110000)); \
|
||||
while(1) \
|
||||
*reset |= (0x01 << 7);\
|
||||
})
|
||||
|
@ -318,7 +318,7 @@ cmpxchg(volatile int *p, int old, int new)
|
|||
({ \
|
||||
unsigned char volatile *reset; \
|
||||
asm("move.w #0x2700, %sr"); \
|
||||
reset = ((volatile unsigned short *)(MCF_IPSBAR + 0xA0000)); \
|
||||
reset = ((volatile unsigned char *)(MCF_IPSBAR + 0xA0000)); \
|
||||
while(1) \
|
||||
*reset |= 0x80; \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue