From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24715 invoked by alias); 19 May 2006 04:43:34 -0000 Received: (qmail 24705 invoked by uid 22791); 19 May 2006 04:43:33 -0000 X-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_40,TW_PL X-Spam-Check-By: sourceware.org Received: from fmmailgate03.web.de (HELO fmmailgate03.web.de) (217.72.192.234) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 19 May 2006 04:43:31 +0000 Received: by fmmailgate03.web.de (8.12.6/8.12.6/webde Linux 0.7) with ESMTP id k4J4hSrm025325 for ; Fri, 19 May 2006 06:43:28 +0200 Received: from [82.119.167.254] (helo=[192.168.1.4]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.107 #108) id 1Fgwpk-0001Jc-00 for ecos-devel@sourceware.org; Fri, 19 May 2006 06:43:28 +0200 Message-ID: <446D4CF5.607@web.de> Date: Fri, 19 May 2006 04:43:00 -0000 From: =?ISO-8859-2?Q?Manfred_W=F6lfel?= User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: ecos-devel@sourceware.org Subject: PPC40x port Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Sender: manfred.woelfel@web.de Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-05/txt/msg00023.txt.bz2 Hi, I have a board with a PPC405 where the RAM does not start at 0 while variant.inc assumes it starts at 0. For this reason I have written the attached patch. Manfred ------------------------------------------------------------------------ --- hal/powerpc/ppc40x/current/include/variant.inc 2006-05-19 06:33:04.000000000 +0200 +++ /tmp/6275-1-1-merge.txt 2006-05-19 06:32:08.000000000 +0200 @@ -150,7 +150,7 @@ # or we are starting in RAM and NOT using a ROM monitor, # copy exception handler code to 0. lwi r3,rom_vectors # r3 = rom start - lwi r4,0 # r4 = ram start + lwi r4,CYGHWR_HAL_POWERPC_VECTOR_BASE # r4 = ram start lwi r5,rom_vectors_end # r5 = rom end cmplw r3,r5 # skip if no vectors beq 2f @@ -166,8 +166,8 @@ 2: #endif - # Ensure that the vectors will come from 0x0000 - lwi r4,0 + # Ensure that the vectors will come from CYGHWR_HAL_POWERPC_VECTOR_BASE + lwi r4, CYGHWR_HAL_POWERPC_VECTOR_BASE mtspr SPR_EVPR,r4 # Next initialize the VSR table. This happens whether the @@ -199,8 +199,8 @@ .macro hal_mon_init - # Ensure that the vectors will come from 0x0000 - lwi r4,0 + # Ensure that the vectors will come from CYGHWR_HAL_POWERPC_VECTOR_BASE + lwi r4,CYGHWR_HAL_POWERPC_VECTOR_BASE mtspr SPR_EVPR,r4 lwi r3,cyg_hal_default_interrupt_vsr