Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Mon, 26 May 2008 16:16:20 -0700
Received: from dalesmta2-1.messageone.com ([129.41.169.249]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Mon, 26 May 2008 16:16:19 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by dalesmta2-1.messageone.com (8.13.8/8.13.8) with ESMTP id m4QNGH5Y026689
	for <andy.sharp@onstor.com>; Mon, 26 May 2008 18:16:19 -0500
Received: from localhost.localdomain ([127.0.0.1]:13243 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S28578205AbYEZXPx (ORCPT <rfc822;andy.sharp@onstor.com>);
	Tue, 27 May 2008 00:15:53 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 27 May 2008 00:15:37 +0100 (BST)
Received: from elvis.franken.de ([193.175.24.41]:2989 "EHLO elvis.franken.de")
	by ftp.linux-mips.org with ESMTP id S28578102AbYEZXPR (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Tue, 27 May 2008 00:15:17 +0100
Received: from uucp (helo=solo.franken.de)
	by elvis.franken.de with local-bsmtp (Exim 3.36 #1)
	id 1K0luO-0001Xr-00; Tue, 27 May 2008 01:15:16 +0200
Received: by solo.franken.de (Postfix, from userid 1000)
	id 14BBCFA1C3; Tue, 27 May 2008 01:15:16 +0200 (CEST)
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: [PATH] Better load address for big endian SNI RM
To: linux-mips@linux-mips.org
cc: ralf@linux-mips.org
Message-Id: <20080526231516.14BBCFA1C3@solo.franken.de>
Date: 	Tue, 27 May 2008 01:15:16 +0200 (CEST)
X-archive-position: 19357
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: tsbogend@alpha.franken.de
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-05-26_07:2008-05-26,2008-05-26,2008-05-26 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=1 spamscore=1 ipscore=0 phishscore=0 bulkscore=0 adultscore=3 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0805260191
X-MessageOne-Spam-Score: 1
X-MessageOne-Spam-Bar: *
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 26 May 2008 23:16:19.0998 (UTC) FILETIME=[818B6BE0:01C8BF86]

Use better load address for big endian kernels to avoid clashes with PROM/SASH

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---

 arch/mips/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 69648d0..1ec8e35 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -565,7 +565,11 @@ load-$(CONFIG_BCM47XX)		:= 0xffffffff80001000
 #
 core-$(CONFIG_SNI_RM)		+= arch/mips/sni/
 cflags-$(CONFIG_SNI_RM)		+= -Iinclude/asm-mips/mach-rm
+ifdef CONFIG_CPU_LITTLE_ENDIAN
 load-$(CONFIG_SNI_RM)		+= 0xffffffff80600000
+else
+load-$(CONFIG_SNI_RM)		+= 0xffffffff80030000
+endif
 all-$(CONFIG_SNI_RM)		:= vmlinux.ecoff
 
 #

