From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32701 invoked by alias); 21 Aug 2011 13:46:54 -0000 Received: (qmail 32679 invoked by uid 22791); 21 Aug 2011 13:46:53 -0000 X-SWARE-Spam-Status: No, hits=-1.9 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, 21 Aug 2011 13:46:38 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 59A7B2F78019 for ; Sun, 21 Aug 2011 14:46:36 +0100 (BST) 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 11eUDbr6hOjT; Sun, 21 Aug 2011 14:46:34 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001275] Cortex-M (armV7) architecture endian instructions / Applied on lwIP 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, 21 Aug 2011 13:46:00 -0000 Message-Id: <20110821134634.A0C0F2F78004@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-08/txt/msg00009.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001275 --- Comment #8 from Ilija Kocho 2011-08-21 14:46:27 BST --- Sergei I did testing and I have working code, but I would postpone patch generation because of the question below. (In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > Personally I would like CYGARC_SWAPxx(), but since CYG_SWAPxx() are > > already present in hal_endian.h let's use them. It will propagate REV > > instructions in other parts of code that may benefit (i guess it is > > safe). hal_endian.h has a provision CYGBLD_HAL_ENDIAN_H for include of architecture specific CYGARC_SWAPxx(). This is what I put in hal_cortexm.cdl: define_proc { puts $::cdl_system_header "#define CYGBLD_HAL_ENDIAN_H \ " } Now cortexm_endian.h is a new header that contains the CYGARC_SWAPxx() macros and corresponding inline functions. I added this file in order to avoid include of complete hal_arch.h For me it is OK to add this header in arch/include but there may be a better proposal. Please comment. Ilija -- 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.