Kconfig

Memory management options

CONFIG_MMU Support for memory management hardware

On

Some SH processors (such as SH-2/SH-2A) lack an MMU. In order to boot on these systems, this option must not be set.

On other systems (such as the SH-3 and 4) where an MMU exists, turning this off will boot the kernel on these machines with the MMU implicitly switched off.

Default
  • y

CONFIG_PAGE_OFFSET

Unknown
Defaults
  • "0x80000000" if
  • "0x00000000"

CONFIG_ARCH_FORCE_MAX_ORDER Order of maximal physically contiguous allocations

Unknown

The kernel page allocator limits the size of maximal physically contiguous allocations. The limit is called MAX_PAGE:_ORDER and it defines the maximal power of two of number of pages that can be allocated as a single contiguous block. This option allows overriding the default setting when ability to allocate very large blocks of physically contiguous memory is required.

The page size is not necessarily 4KB. Keep this in mind when choosing a value for this option.

Don't change if unsure.

CONFIG_MEMORY_START Physical memory start address

Unknown

Computers built with Hitachi SuperH processors always map the ROM starting at address zero. But the processor does not specify the range that RAM takes.

The physical memory (RAM) start address will be automatically set to 08000000. Other platforms, such as the Solution Engine boards typically map RAM at 0C000000.

Tweak this only when porting to a new machine which does not already have a defconfig. Changing it from the known correct value on any of the known systems will only lead to disaster.

Default
  • "0x08000000"

CONFIG_MEMORY_SIZE Physical memory size

Unknown

This sets the default memory size assumed by your SH kernel. It can be overridden as normal by the 'mem=' argument on the kernel command line. If unsure, consult your board specifications or just leave it as 0x04000000 which was the default value before this became configurable.

Default
  • "0x04000000"

CONFIG_32BIT

Unknown
Default
  • !

CONFIG_PMB Support 32-bit physical addressing through PMB

Unknown

If you say Y here, physical addressing will be extended to 32-bits through the SH-4A PMB. If this is not set, legacy 29-bit physical addressing will be used.

CONFIG_VSYSCALL Support vsyscall page

Unknown

This will enable support for the kernel mapping a vDSO page in process space, and subsequently handing down the entry point to the libc through the ELF auxiliary vector.

From the kernel side this is used for the signal trampoline. For systems with an MMU that can afford to give up a page, (the default value) say Y.

Default
  • y

CONFIG_ARCH_FLATMEM_ENABLE

Unknown
Default
  • y

CONFIG_IOREMAP_FIXED

Unknown
Default
  • y

CONFIG_UNCACHED_MAPPING

Unknown

HugeTLB page size

CONFIG_HUGETLB_PAGE_SIZE_256K 256kB

Unknown

CONFIG_HUGETLB_PAGE_SIZE_1MB 1MB

Unknown

CONFIG_HUGETLB_PAGE_SIZE_4MB 4MB

Unknown

CONFIG_HUGETLB_PAGE_SIZE_64MB 64MB

Unknown
End of HugeTLB page size

CONFIG_SCHED_MC Multi-core scheduler support

On

Multi-core scheduler support improves the CPU scheduler's decision making when dealing with multi-core CPU chips at a cost of slightly increased overhead in some places. If unsure say N here.

  • Depends on
Default
  • y
End of Memory management options

Cache configuration

CONFIG_SH7705_CACHE_32KB Enable 32KB cache size for SH7705

Unknown
Default
  • y

Cache mode

CONFIG_CACHE_WRITEBACK Write-back

Unknown

CONFIG_CACHE_WRITETHROUGH Write-through

Unknown

Selecting this option will configure the caches in write-through mode, as opposed to the default write-back configuration.

Since there's sill some aliasing issues on SH-4, this option will unfortunately still require the majority of flushing functions to be implemented to deal with aliasing.

If unsure, say N.

CONFIG_CACHE_OFF Off

Unknown
End of Cache mode
End of Cache configuration