ARM: S3C24XX: Locate kernel at 0x30108000 if PM_H1940 is enabled
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 11 May 2010 06:55:09 +0000 (09:55 +0300)
committerBen Dooks <ben-linux@fluff.org>
Wed, 12 May 2010 00:19:24 +0000 (09:19 +0900)
If PM_H1940 is enabled, kernel _must_ be located upper then 0x30008000,
because this area (0x30000000-0x30100000) can be used by bootloader. If
kernel is located at 0x30008000, bootloader will corrupt kernel's code during
resume.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/Makefile
arch/arm/mach-s3c2410/Makefile.boot

index ed820e737a8a66fd063192b685b5642ea2f71985..eddcbba87c671bac47a4e0ff8434d16463a5e992 100644 (file)
@@ -110,6 +110,8 @@ CHECKFLAGS  += -D__arm__
 head-y         := arch/arm/kernel/head$(MMUEXT).o arch/arm/kernel/init_task.o
 textofs-y      := 0x00008000
 textofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000
+# We don't want the htc bootloader to corrupt kernel during resume
+textofs-$(CONFIG_PM_H1940)      := 0x00108000
 # SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory
 ifeq ($(CONFIG_ARCH_SA1100),y)
 textofs-$(CONFIG_SA1111) := 0x00208000
index 7dab2a0325b5cee09bea68f59c16db5c83ca3af5..58c1dd7f8e1dbe47afc9a1bb9411780c0f72076a 100644 (file)
@@ -1,3 +1,7 @@
-   zreladdr-y  := 0x30008000
-params_phys-y  := 0x30000100
-
+ifeq ($(CONFIG_PM_H1940),y)
+       zreladdr-y              := 0x30108000
+       params_phys-y   := 0x30100100
+else
+       zreladdr-y              := 0x30008000
+       params_phys-y   := 0x30000100
+endif