From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5040 invoked by alias); 14 Jun 2002 12:55:16 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 5001 invoked from network); 14 Jun 2002 12:55:14 -0000 Received: from unknown (HELO kasica.elsis.si) (194.249.198.85) by sources.redhat.com with SMTP; 14 Jun 2002 12:55:14 -0000 Received: (qmail 19200 invoked by uid 1005); 14 Jun 2002 15:55:15 -0000 Received: from iz@vsr.si by kasica by uid 1002 with qmail-scanner-1.10 (sweep: 2.9/3.55. . Clear:0. Processed in 1.288775 secs); 14 Jun 2002 15:55:15 -0000 X-Qmail-Scanner-Mail-From: iz@vsr.si via kasica X-Qmail-Scanner: 1.10 (Clear:0. Processed in 1.288775 secs) Received: from unknown (HELO conc) (194.249.198.84) by kasica.elsis.si with SMTP; 14 Jun 2002 15:55:14 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Iztok Zupet Reply-To: iz@vsr.si Organization: VSR d.o.o. To: Roland =?iso-8859-1?q?Ca=DFebohm?= Date: Fri, 14 Jun 2002 05:55:00 -0000 User-Agent: KMail/1.4.1 Cc: ecos-discuss@sources.redhat.com References: <200206131620.g5DGK0O07287@hhlx01.visionsystems.de> <200206141405.02368.iz@vsr.si> <200206141241.g5ECf7O08892@hhlx01.visionsystems.de> In-Reply-To: <200206141241.g5ECf7O08892@hhlx01.visionsystems.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200206141455.35143.iz@vsr.si> Subject: Re: [ECOS] exception when calling reset_platform X-SW-Source: 2002-06/txt/msg00253.txt.bz2 On Friday 14 June 2002 14:41, Roland Caßebohm wrote: > On Friday, 14. June 2002 14:05, Iztok Zupet wrote: > > On Friday 14 June 2002 12:45, Roland Caßebohm wrote: > > > On Thursday, 13. June 2002 19:16, Iztok Zupet wrote: > > > > On Thursday 13 June 2002 18:20, Roland Caßebohm wrote: > > > > > Hi, > > > > > > > > > > my ARM7TDMI (SNDS100 Board) makes an abort prefetch exception when > > > > > the application calls reset_platform(). > > > > > > > > > > I added two nop's because I thought the processor prefetches the > > > > > init_done value, but this doesn't help: > > > > > > > > > > ---------- > > > > > .global reset_platform > > > > > .type reset_platform,function > > > > > reset_platform: > > > > > #ifdef CYGSEM_HAL_ROM_MONITOR > > > > > // initialize CPSR (machine state register) > > > > > mov > > > > > r0,#(CPSR_IRQ_DISABLE|CPSR_FIQ_DISABLE|CPSR_SUPERVISOR_MODE) msr > > > > > cpsr,r0 > > > > > b warm_reset > > > > > #else > > > > > mov r0,#0 > > > > > mov pc,r0 // Jump to reset vector > > > > > //roland > > > > > mov r0,r0 // nop > > > > > mov r0,r0 // nop > > > > > #endif > > > > > > > > > > init_done: > > > > > .long 0xDEADB00B > > > > > ---------- > > > > > > > > > > Does anybody know what's wrong? > > > > > > > > > > Roland > > > > > > > > Hi: > > > > > > > > Looks like that the abort prefetch hapens somewhere else, not in > > > > the code You've sent. Take a look at the reset vector and the code > > > > that executes there ( if it is in RAM). It may be corrupt for some > > > > reason. Anyhow, can You figure out the address of the exeption? > > > > > > > > iz > > > > > > The exception seems to be at 0x31638: > > > > > > void vs_reboot(void) > > > { > > > > > > ... > > > > > > 31638: ebffbb55 bl 20394 > > > } > > > 3163c: e91ba800 ldmdb r11, {r11, sp, pc} > > > > Strange. Since the abort prefetch happens here (it happens only beacuse > > of the ABORT signal asserted) it means that is no longer > > in valid memory that can be reached by cpu. What kind of memory mapping > > do You have? Take a look at the linker xxx.ldi script in the platform/hal > > directory if they if it's correct for Your memory layout. > > > > iz > > RAM is mapped to 0x0 and the size is 0x200000. The function reset_platform > should be and is in this array (0x20394). > > Roland Now, try to replace the bl with mov r0,#0 mov pc,r0 // Jump to reset vector to see what happens. I dont have any other idea. Do You have any kind of memory management on board? iz -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss