Skip to content
Snippets Groups Projects
Commit 1fbd0c36 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Fix strict-aliasing rules for in_be32


readl should work with unsigned int instead of unsigned long.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent e634138e
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
#define readw(addr) \
({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; })
#define readl(addr) \
({ unsigned long __v = (*(volatile unsigned long *) (addr)); __v; })
({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; })
#define writeb(b, addr) \
(void)((*(volatile unsigned char *) (addr)) = (b))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment