From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126676 invoked by alias); 29 Apr 2015 13:27:58 -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 126650 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=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no 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:55 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id AE7FBA800CC for ; Wed, 29 Apr 2015 14:27:52 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (albus.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0XA6uEHzfb2p; Wed, 29 Apr 2015 14:27:52 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-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: CC 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/msg00032.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 on the CC list for the bug.