mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
microblaze: Fix strict-aliasing rules for in_be32
readl should work with unsigned int instead of unsigned long. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
e634138e73
commit
1fbd0c36da
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
#define readw(addr) \
|
#define readw(addr) \
|
||||||
({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; })
|
({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; })
|
||||||
#define readl(addr) \
|
#define readl(addr) \
|
||||||
({ unsigned long __v = (*(volatile unsigned long *) (addr)); __v; })
|
({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; })
|
||||||
|
|
||||||
#define writeb(b, addr) \
|
#define writeb(b, addr) \
|
||||||
(void)((*(volatile unsigned char *) (addr)) = (b))
|
(void)((*(volatile unsigned char *) (addr)) = (b))
|
||||||
|
|
Loading…
Add table
Reference in a new issue