diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:19:13 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:19:13 -0400 |
commit | e7f93a355c7e32c26eab8910cf53b7506bb046c5 (patch) | |
tree | 0f4f2e60423a2c4c70134e6734b57b97e277af65 /arch/sh/mm | |
parent | adf1890b0cd63f754b2171b73e4d845c0950d407 (diff) |
sh: Make PAGE_OFFSET configurable.
nommu needs to be able to shift PAGE_OFFSET, so we switch it to a
non-user-visible CONFIG_PAGE_OFFSET and use that in the few places
where it matters.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/Kconfig | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 9064dfc91e6d..f25903aa607b 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -161,6 +161,37 @@ config MMU | |||
161 | turning this off will boot the kernel on these machines with the | 161 | turning this off will boot the kernel on these machines with the |
162 | MMU implicitly switched off. | 162 | MMU implicitly switched off. |
163 | 163 | ||
164 | config PAGE_OFFSET | ||
165 | hex | ||
166 | default "0x80000000" if MMU | ||
167 | default "0x00000000" | ||
168 | |||
169 | config MEMORY_START | ||
170 | hex "Physical memory start address" | ||
171 | default "0x08000000" | ||
172 | ---help--- | ||
173 | Computers built with Hitachi SuperH processors always | ||
174 | map the ROM starting at address zero. But the processor | ||
175 | does not specify the range that RAM takes. | ||
176 | |||
177 | The physical memory (RAM) start address will be automatically | ||
178 | set to 08000000. Other platforms, such as the Solution Engine | ||
179 | boards typically map RAM at 0C000000. | ||
180 | |||
181 | Tweak this only when porting to a new machine which does not | ||
182 | already have a defconfig. Changing it from the known correct | ||
183 | value on any of the known systems will only lead to disaster. | ||
184 | |||
185 | config MEMORY_SIZE | ||
186 | hex "Physical memory size" | ||
187 | default "0x00400000" | ||
188 | help | ||
189 | This sets the default memory size assumed by your SH kernel. It can | ||
190 | be overridden as normal by the 'mem=' argument on the kernel command | ||
191 | line. If unsure, consult your board specifications or just leave it | ||
192 | as 0x00400000 which was the default value before this became | ||
193 | configurable. | ||
194 | |||
164 | config 32BIT | 195 | config 32BIT |
165 | bool "Support 32-bit physical addressing through PMB" | 196 | bool "Support 32-bit physical addressing through PMB" |
166 | depends on CPU_SH4A | 197 | depends on CPU_SH4A |