diff options
-rw-r--r-- | arch/sh/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/sh/mm/Kconfig | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index 89b408620dcb..8b37869a8227 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -40,7 +40,7 @@ KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ | |||
40 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ | 40 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ |
41 | $$[$(CONFIG_PAGE_OFFSET) + \ | 41 | $$[$(CONFIG_PAGE_OFFSET) + \ |
42 | $(CONFIG_MEMORY_START) + \ | 42 | $(CONFIG_MEMORY_START) + \ |
43 | $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]') | 43 | $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]') |
44 | 44 | ||
45 | quiet_cmd_uimage = UIMAGE $@ | 45 | quiet_cmd_uimage = UIMAGE $@ |
46 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ | 46 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ |
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 29d8e3c58b34..56d0a7daa34b 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -170,6 +170,14 @@ config PAGE_SIZE_64KB | |||
170 | 170 | ||
171 | endchoice | 171 | endchoice |
172 | 172 | ||
173 | config ENTRY_OFFSET | ||
174 | hex | ||
175 | default "0x00001000" if PAGE_SIZE_4KB | ||
176 | default "0x00002000" if PAGE_SIZE_8KB | ||
177 | default "0x00004000" if PAGE_SIZE_16KB | ||
178 | default "0x00010000" if PAGE_SIZE_64KB | ||
179 | default "0x00000000" | ||
180 | |||
173 | choice | 181 | choice |
174 | prompt "HugeTLB page size" | 182 | prompt "HugeTLB page size" |
175 | depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU | 183 | depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU |