···238238239239source "arch/sh/mm/Kconfig"240240241241-config MEMORY_START242242- hex "Physical memory start address"243243- default "0x08000000"244244- ---help---245245- Computers built with Hitachi SuperH processors always246246- map the ROM starting at address zero. But the processor247247- does not specify the range that RAM takes.248248-249249- The physical memory (RAM) start address will be automatically250250- set to 08000000. Other platforms, such as the Solution Engine251251- boards typically map RAM at 0C000000.252252-253253- Tweak this only when porting to a new machine which does not254254- already have a defconfig. Changing it from the known correct255255- value on any of the known systems will only lead to disaster.256256-257257-config MEMORY_SIZE258258- hex "Physical memory size"259259- default "0x00400000"260260- help261261- This sets the default memory size assumed by your SH kernel. It can262262- be overridden as normal by the 'mem=' argument on the kernel command263263- line. If unsure, consult your board specifications or just leave it264264- as 0x00400000 which was the default value before this became265265- configurable.266266-267241config CF_ENABLER268242 bool "Compact Flash Enabler support"269243 depends on SH_ADX || SH_SOLUTION_ENGINE || SH_UNKNOWN || SH_CAT68701 || SH_SH03
+2-1
arch/sh/boot/compressed/Makefile
···1818# Assign dummy values if these 2 variables are not defined,1919# in order to suppress error message.2020#2121+CONFIG_PAGE_OFFSET ?= 0x800000002122CONFIG_MEMORY_START ?= 0x0c0000002223CONFIG_BOOT_LINK_OFFSET ?= 0x008000002323-IMAGE_OFFSET := $(shell printf "0x%8x" $$[0x80000000+$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)])2424+IMAGE_OFFSET := $(shell printf "0x%8x" $$[$(CONFIG_PAGE_OFFSET)+$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)])24252526LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup -T $(obj)/../../kernel/vmlinux.lds2627
+1-1
arch/sh/kernel/vmlinux.lds.S
···1313ENTRY(_start)1414SECTIONS1515{1616- . = 0x80000000 + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;1616+ . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;1717 _text = .; /* Text and read-only data */1818 text = .; /* Text and read-only data */1919 .empty_zero_page : {
+31
arch/sh/mm/Kconfig
···161161 turning this off will boot the kernel on these machines with the162162 MMU implicitly switched off.163163164164+config PAGE_OFFSET165165+ hex166166+ default "0x80000000" if MMU167167+ default "0x00000000"168168+169169+config MEMORY_START170170+ hex "Physical memory start address"171171+ default "0x08000000"172172+ ---help---173173+ Computers built with Hitachi SuperH processors always174174+ map the ROM starting at address zero. But the processor175175+ does not specify the range that RAM takes.176176+177177+ The physical memory (RAM) start address will be automatically178178+ set to 08000000. Other platforms, such as the Solution Engine179179+ boards typically map RAM at 0C000000.180180+181181+ Tweak this only when porting to a new machine which does not182182+ already have a defconfig. Changing it from the known correct183183+ value on any of the known systems will only lead to disaster.184184+185185+config MEMORY_SIZE186186+ hex "Physical memory size"187187+ default "0x00400000"188188+ help189189+ This sets the default memory size assumed by your SH kernel. It can190190+ be overridden as normal by the 'mem=' argument on the kernel command191191+ line. If unsure, consult your board specifications or just leave it192192+ as 0x00400000 which was the default value before this became193193+ configurable.194194+164195config 32BIT165196 bool "Support 32-bit physical addressing through PMB"166197 depends on CPU_SH4A