debuggers.hg

view xen/arch/x86/boot/Makefile @ 20966:83a6621b91bf

x86: move trampoline location

A partner of ours is reporting boot failures (Xen not even emitting a
single message) over iSCSI on new (UEFI based) systems. After
pointing at their BIOS initially I finally remembered to take a look
at the memory map a native kernel booted this way see - and voila, the
BIOS reports memory starting at 0x8d000 as reserved. Xen, however,
places about 12k of (trampoline) data at 0x8c000.

For now, move the trampolien down by 4kB to 0x88000. Later we may
choose the location dynamically based on E820 information, if this
proves to be an ongoing problem.

One thing this patch enforces in any case is a single point of
definition for the hard coded location, so that at least adjusting it
won't require more than a single line change in the future.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 10 09:20:56 2010 +0000 (2010-02-10)
parents aca402831ac1
children 3ffdb094c2c0 bcc09eb7379f
line source
1 obj-y += head.o
3 head.o: reloc.S
5 BOOT_TRAMPOLINE := $(shell sed -n 's,^\#define[[:space:]]\+BOOT_TRAMPOLINE[[:space:]]\+,,p' $(BASEDIR)/include/asm-x86/config.h)
6 %.S: %.c
7 RELOC=$(BOOT_TRAMPOLINE) $(MAKE) -f build32.mk $@
9 reloc.S: $(BASEDIR)/include/asm-x86/config.h