From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126687 invoked by alias); 29 Apr 2015 13:27:59 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org Received: (qmail 126652 invoked by uid 89); 29 Apr 2015 13:27:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail.ecoscentric.com Received: from albus.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 29 Apr 2015 13:27:56 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 512) id 5DA15A83688; Wed, 29 Apr 2015 14:27:53 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1002061] New: Freescale eDMA library macro FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() fails with negative offset. Date: Wed, 29 Apr 2015 13:27:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: HAL X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ilijak@siva.com.mk X-Bugzilla-Status: NEW X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015/txt/msg00033.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1002061 Bug ID: 1002061 Summary: Freescale eDMA library macro FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() fails with negative offset. Product: eCos Version: CVS Target: freescale_twr_k70f120m (Freescale Kinetis TWR-K70F120M board) Architecture/Host All OS: Status: NEW Severity: enhancement Priority: low Component: HAL Assignee: unassigned@bugs.ecos.sourceware.org Reporter: ilijak@siva.com.mk CC: ecos-bugs@ecos.sourceware.org Created attachment 2589 --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2589&action=edit Patch for freescale_edma.h - mask-off unwanted birs. Freescale eDMA library macro FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF()fails when offset is negative. The reason: The ofset field is 20 bit long, so signe extended negative number has extra leading 1s that polute register bits out of offset boundaries. The attached patch masks off bits out of offset field boundaries. Ilija -- You are receiving this mail because: You are the assignee for the bug.