From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20737 invoked by alias); 16 Jan 2011 14:06:26 -0000 Received: (qmail 20664 invoked by uid 22791); 16 Jan 2011 14:06:24 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Jan 2011 14:06:18 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 11DB12F78010 for ; Sun, 16 Jan 2011 14:06:16 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pioIFgIilSwD; Sun, 16 Jan 2011 14:06:11 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001117] Cortex-M architecture fixes. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ilijak@siva.com.mk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 16 Jan 2011 14:06:00 -0000 Message-Id: <20110116140611.32DA72F78004@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2011-01/txt/msg00020.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001117 --- Comment #2 from Ilija Kocho 2011-01-16 14:06:08 GMT --- Hi Christophe You seem to be right on both points. #1 should not be here and #2 is simply swapped sources, shame on me :( . Since you already have the Bug 1001090 let's continue discussion on SysTick there. Also, considering that you are working on a yet another platform, Stellaris,we could share some info on eventual similar Cortex-M architecture issues and try to synchronize action. Regarding this bug, I am going to put a patch that covers VTOR only. Ilija (In reply to comment #1) > Hi Ilija, > > I made a patch for the system tick clock source some time ago: Bug 1001090 . > > Your patch seems to change the default behavior of the cortex M HAL: > > #1 CSR is initialised with CYGARC_REG_SYSTICK_CSR_TICKINT so you are enabling > the interrupt. > > #2 Definition of CYGARC_REG_SYSTICK_CSR_CLK_EXT and > CYGARC_REG_SYSTICK_CSR_CLK_INT was originally correct, your new definition is > more difficult to understand. When CYGARC_REG_SYSTICK_CSR_CLK_SRC is not > defined in CDLs, the clock source equal CYGARC_REG_SYSTICK_CSR_CLK_INT which > actually makes the processor use external clock while by reading the code one > might think that the processor should use internal clock. > > +#if !defined CYGARC_REG_SYSTICK_CSR_CLK_SRC > +#define CYGARC_REG_SYSTICK_CSR_CLK_SRC CYGARC_REG_SYSTICK_CSR_CLK_INT > +#endif > > Christophe -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.