This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[XenPPC] [PATCH] default link address

Xen's current link address of 0x2000000 causes a program exception on
JS20 blades with SLOF.  This patch changes the default link address
to 0x3000000 (50MB) and adds some logic to allow LINK=X to be supplied
at the make invocation.

This works for the JS20 and JS21 blades with SLOF that I have access to.
Hopefully it works on Maple-D as well.

Signed-off-by: Amos Waterland <apw@xxxxxxxxxx>


 Makefile |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff -r e427b4ae889f xen/arch/ppc/Makefile
--- a/xen/arch/ppc/Makefile     Thu Jun 08 18:07:55 2006 -0400
+++ b/xen/arch/ppc/Makefile     Fri Jun 16 13:18:23 2006 -0400
@@ -75,11 +75,16 @@ physdev.o: ../x86/physdev.c
 HDRS += $(wildcard *.h)
+LINK = 0x3000000
+boot32_link_base = $(LINK)
+xen_link_offset  = 100
+xen_link_base    = $(patsubst %000,%$(xen_link_offset),$(LINK))
 start.o: boot/start.S
        $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@
 $(TARGET)-syms: start.o $(ALL_OBJS) xen.lds
-       $(CC) $(CFLAGS) $(OMAGIC) -Wl,-Ttext,0x2000100,-T,xen.lds start.o 
$(ALL_OBJS) -o $@
+       $(CC) $(CFLAGS) $(OMAGIC) -Wl,-Ttext,$(xen_link_base),-T,xen.lds 
start.o $(ALL_OBJS) -o $@
 $(TARGET).bin: $(TARGET)-syms
        $(CROSS_COMPILE)objcopy --output-target=binary $< $@
@@ -95,7 +100,7 @@ boot32.o: boot/boot32.S
 $(TARGET): boot32.o $(TARGET).bin.o
        $(CC) -m32 -N -Wl,-melf32ppclinux -static -nostdlib \
-               -Wl,-Ttext,0x2000000  -Wl,-Tdata,0x2000100 \
+               -Wl,-Ttext,$(boot32_link_base)  -Wl,-Tdata,$(xen_link_base) \
                $(CFLAGS) $^ -o $@
 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(HDRS)

Xen-ppc-devel mailing list