WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [xenppc-unstable] [ppc] Allow for the xen link address to be ov

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [ppc] Allow for the xen link address to be overridden
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Jun 2006 22:05:20 +0000
Delivery-date: Tue, 20 Jun 2006 15:08:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 24b15d746dd2befd97c33139406845f7f82bd374
# Parent  279ada76581b4c14f0397577d6122c4e33b35b40
[ppc] Allow for the xen link address to be overridden

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>

It does work for Maple-D/PIBS

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/ppc/Makefile |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff -r 279ada76581b -r 24b15d746dd2 xen/arch/ppc/Makefile
--- a/xen/arch/ppc/Makefile     Tue Jun 20 13:53:04 2006 -0400
+++ b/xen/arch/ppc/Makefile     Tue Jun 20 18:00:08 2006 -0400
@@ -46,6 +46,11 @@ CFLAGS += -Wmissing-prototypes -Wmissing
 CFLAGS += -Wmissing-prototypes -Wmissing-declarations -Wpacked
 CFLAGS += -Wredundant-decls
 
+LINK=0x3000000
+boot32_link_base = $(LINK)
+xen_link_offset  = 100
+xen_link_base    = $(patsubst %000,%$(xen_link_offset),$(LINK))
+
 #
 # The following flags are fed to gcc in order to link several
 # objects into a single ELF segment and to not link in any additional
@@ -79,7 +84,7 @@ 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
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [ppc] Allow for the xen link address to be overridden, Xen patchbot-xenppc-unstable <=