# This makes UML load at 0x8048000 rather than 0xa0000000 when # CONFIG_MODE_SKAS is on and CONFIG_MODE_TT is off. This will make it # more valgrind-friendly, and also allow much greater physical memory # sizes without needing to use highmem. Index: um/arch/um/Makefile =================================================================== --- um.orig/arch/um/Makefile 2004-08-09 16:51:46.000000000 -0400 +++ um/arch/um/Makefile 2004-08-09 16:53:23.000000000 -0400 @@ -93,9 +93,13 @@ LD_SCRIPT-y := $(ARCH_DIR)/$(LD_SCRIPT-y) M4_MODE_TT := $(shell [ "$(CONFIG_MODE_TT)" = "y" ] && echo -DMODE_TT) +ifndef START + START = $$(($(TOP_ADDR) - $(SIZE))) +endif + $(LD_SCRIPT-y): $(LD_SCRIPT-y).in pages=$$(( 1 << $(CONFIG_KERNEL_STACK_ORDER) )) ; \ - m4 -DSTART=$$(($(TOP_ADDR) - $(SIZE))) -DELF_ARCH=$(ELF_ARCH) \ + m4 -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \ -DELF_FORMAT=$(ELF_FORMAT) $(M4_MODE_TT) \ -DKERNEL_STACK_SIZE=$$(( 4096 * $$pages )) $< > $@ Index: um/arch/um/Makefile-i386 =================================================================== --- um.orig/arch/um/Makefile-i386 2004-08-12 13:18:53.000000000 -0400 +++ um/arch/um/Makefile-i386 2004-08-12 13:19:07.000000000 -0400 @@ -1,9 +1,15 @@ -ifeq ($(CONFIG_HOST_2G_2G), y) +ifeq ($(CONFIG_HOST_2G_2G),y) TOP_ADDR = 0x80000000 else TOP_ADDR = 0xc0000000 endif +ifeq ($(CONFIG_MODE_SKAS),y) + ifneq ($(CONFIG_MODE_TT),y) + START = 0x8048000 + endif +endif + ARCH_CFLAGS = -U__$(SUBARCH)__ -U$(SUBARCH) ifneq ($(CONFIG_GPROF),y)