From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1986 invoked by alias); 14 Jun 2002 10:45:42 -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 1931 invoked from network); 14 Jun 2002 10:45:38 -0000 Received: from unknown (HELO hhlx01.visionsystems.de) (62.145.30.242) by sources.redhat.com with SMTP; 14 Jun 2002 10:45:38 -0000 Received: from kallisto.intra.visionsystems.de (kallisto.intra.visionsystems.de [192.168.1.3]) by hhlx01.visionsystems.de (8.11.1/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id g5EAjVO08709; Fri, 14 Jun 2002 12:45:34 +0200 Message-Id: <200206141045.g5EAjVO08709@hhlx01.visionsystems.de> Received: from there (development1.intra.visionsystems.de [192.168.1.36]) by kallisto.intra.visionsystems.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id M65PKX56; Fri, 14 Jun 2002 12:45:31 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Roland =?iso-8859-1?q?Ca=DFebohm?= To: iz@vsr.si Date: Fri, 14 Jun 2002 03:45:00 -0000 Cc: ecos-discuss@sources.redhat.com References: <200206131620.g5DGK0O07287@hhlx01.visionsystems.de> <200206131916.21545.iz@vsr.si> In-Reply-To: <200206131916.21545.iz@vsr.si> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ECOS] exception when calling reset_platform X-SW-Source: 2002-06/txt/msg00248.txt.bz2 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} -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss