Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d84588b authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Russell King
Browse files

[ARM] 4551/1: s3c24xx: fix wrong virtual address offsets



This patch reduces 36-bit offset to 32-bit offsets. The 36-bit
offsets makes virtual addresses wraps when added to 32-bit base.

Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent a228d6e7
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -30,11 +30,11 @@
#define S3C_ADDR(x)	(S3C_ADDR_BASE + (x))
#endif

#define S3C_VA_IRQ	S3C_ADDR(0x000000000)	/* irq controller(s) */
#define S3C_VA_SYS	S3C_ADDR(0x001000000)	/* system control */
#define S3C_VA_MEM	S3C_ADDR(0x002000000)	/* system control */
#define S3C_VA_TIMER	S3C_ADDR(0x003000000)	/* timer block */
#define S3C_VA_WATCHDOG	S3C_ADDR(0x004000000)	/* watchdog */
#define S3C_VA_UART	S3C_ADDR(0x010000000)	/* UART */
#define S3C_VA_IRQ	S3C_ADDR(0x00000000)	/* irq controller(s) */
#define S3C_VA_SYS	S3C_ADDR(0x00100000)	/* system control */
#define S3C_VA_MEM	S3C_ADDR(0x00200000)	/* system control */
#define S3C_VA_TIMER	S3C_ADDR(0x00300000)	/* timer block */
#define S3C_VA_WATCHDOG	S3C_ADDR(0x00400000)	/* watchdog */
#define S3C_VA_UART	S3C_ADDR(0x01000000)	/* UART */

#endif /* __ASM_PLAT_MAP_H */