Unless you know what you are doing, say N here.
+comment "Default settings for advanced configuration options are used"
+ depends on !ADVANCED_OPTIONS
+
config HIGHMEM_START_BOOL
bool "Set high memory pool address"
depends on ADVANCED_OPTIONS && HIGHMEM
depends on HIGHMEM_START_BOOL
default "0xfe000000"
+config HIGHMEM_START
+ hex
+ depends on !HIGHMEM_START_BOOL
+ default "0xfe000000"
+
config LOWMEM_SIZE_BOOL
bool "Set maximum low memory"
depends on ADVANCED_OPTIONS && HIGHMEM
depends on LOWMEM_SIZE_BOOL
default "0x20000000"
+config LOWMEM_SIZE
+ hex
+ depends on !LOWMEM_SIZE_BOOL
+ default "0x20000000"
+
config KERNEL_START_BOOL
bool "Set custom kernel base address"
depends on ADVANCED_OPTIONS
depends on KERNEL_START_BOOL
default "0xc0000000"
+config KERNEL_START
+ hex
+ depends on !KERNEL_START_BOOL
+ default "0xc0000000"
+
config TASK_SIZE_BOOL
bool "Set custom user task size"
depends on ADVANCED_OPTIONS
depends on TASK_SIZE_BOOL
default "0x80000000"
+config TASK_SIZE
+ hex
+ depends on !TASK_SIZE_BOOL
+ default "0x80000000"
+
config PIN_TLB
bool "Pinned Kernel TLBs (860 ONLY)"
depends on ADVANCED_OPTIONS && 8xx
# Rewritten by Cort Dougan and Paul Mackerras
#
-# Be sure to change PAGE_OFFSET in include/asm-ppc/page.h to match
-ifdef CONFIG_KERNEL_START_BOOL
+# This must match PAGE_OFFSET in include/asm-ppc/page.h.
KERNELLOAD =$(CONFIG_KERNEL_START)
-else
-KERNELLOAD =0xc0000000
-endif
+LDFLAGS_BLOB := --format binary --oformat elf32-powerpc
LDFLAGS_vmlinux = -Ttext $(KERNELLOAD) -Bstatic
CPPFLAGS := $(CPPFLAGS) -I$(TOPDIR)/arch/$(ARCH)
AFLAGS := $(AFLAGS) -I$(TOPDIR)/arch/$(ARCH)
#include "mem_pieces.h"
#include "mmu_decl.h"
-#ifdef CONFIG_LOWMEM_SIZE_BOOL
+#if defined(CONFIG_KERNEL_START_BOOL) || defined(CONFIG_LOWMEM_SIZE_BOOL)
+/* The ammount of lowmem must be within 0xF0000000 - KERNELBASE. */
+#if (CONFIG_LOWMEM_SIZE > (0xF0000000 - KERNELBASE))
+#error "You must adjust CONFIG_LOWMEM_SIZE or CONFIG_START_KERNEL"
+#endif
+#endif
#define MAX_LOW_MEM CONFIG_LOWMEM_SIZE
-#else
-#define MAX_LOW_MEM (0xF0000000UL - KERNELBASE)
-#endif /* CONFIG_LOWMEM_SIZE_BOOL */
#ifdef CONFIG_PPC_ISERIES
extern void create_virtual_bus_tce_table(void);