From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30339 invoked by alias); 3 Sep 2014 13:36:31 -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 30316 invoked by uid 89); 3 Sep 2014 13:36:30 -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 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, 03 Sep 2014 13:36:28 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 64053A88A19 for ; Wed, 3 Sep 2014 14:36:25 +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 znwEUquUGQTQ; Wed, 3 Sep 2014 14:36:24 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1002008] New: using floating-point operations Date: Wed, 03 Sep 2014 13:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Other X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: akinin_a@oaoesp.ru 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: 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: quoted-printable X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014/txt/msg00245.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=3D1002008 Bug ID: 1002008 Summary: using floating-point operations Product: eCos Version: 3.0 Target: All Architecture/Host ARM OS: Status: UNCONFIRMED Severity: critical Priority: low Component: Other Assignee: unassigned@bugs.ecos.sourceware.org Reporter: akinin_a@oaoesp.ru CC: ecos-bugs@ecos.sourceware.org Created attachment 2540 --> http://bugs.ecos.sourceware.org/attachment.cgi?id=3D2540&action=3Dedit Most of the program code and the description in the application. (pdf file) Hello. We had a problem when programming in our controller. That we have: 1. LPC3210, ARM-9, eCos 3.0 2. thread - "Main cycle" cyg_thread_create ( PRI_MAIN_CYCLE,// priority MainCycle, // entry 0, // entry parameter "Main cycle", // name &thread_stack[MAIN_THREAD], // stack STACK_SIZE, // stack size=20=20 &handle[MAIN_THREAD], // handle &thread_data[MAIN_THREAD]); // thread data structure 3. Interrupt ADC ( 1 per 200 microseconds) 4. Two different cycle on thred =E2=80=9CMain cycle" int it; float mtest_element[101]; int mtest_intelement[101]; long long mtest_longelement[101]; part code 1: mtest_longelement[it]=3D(long long)mtest_element[it]; if(mtest_longelement[it]!=3D(long long)it) { diag_printf("ERROR err_i %d int %d \n", mtest_longelement[it], it); } part code 2: mtest_intelement[it]=3D(int)mtest_element[it]; if(mtest_intelement[it]!=3Dit) { diag_printf("ERROR err_i %d int %d \n", mtest_intelement[it], it); } Case 1 When we use an array of "long long" type and ADC interrupt is enabled all is OK. Case 2 When we use an array of "int" type and ADC interrupt is enabled there is da= ta corruption. Case 3 When we use an array of "int" type and ADC interrupt is disabled all is OK = too. What wrong? We certainly observe that the interrupt handler working with VFP modifies f= loat data used in other thread. How and where is the VFP state saving realized? Most of the program code in the attachment. Thank you, Andrey. --=20 You are receiving this mail because: You are on the CC list for the bug. >>From ecos-bugs-return-10877-listarch-ecos-bugs=sources.redhat.com@sourceware.org Wed Sep 03 13:36:31 2014 Return-Path: Delivered-To: listarch-ecos-bugs@sources.redhat.com Received: (qmail 30332 invoked by alias); 3 Sep 2014 13:36:31 -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 Delivered-To: mailing list ecos-bugs@sourceware.org Received: (qmail 30315 invoked by uid 89); 3 Sep 2014 13:36:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS 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, 03 Sep 2014 13:36:28 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 512) id 505F5A88A68; Wed, 3 Sep 2014 14:36:25 +0100 (BST) X-Original-To: unassigned@bugs.ecos.sourceware.org Delivered-To: unassigned@bugs.ecos.sourceware.org From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1002008] New: using floating-point operations Date: Wed, 03 Sep 2014 13:36:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Other X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: akinin_a@oaoesp.ru 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: 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: quoted-printable X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014/txt/msg00244.txt.bz2 Content-length: 2406 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=3D1002008 Bug ID: 1002008 Summary: using floating-point operations Product: eCos Version: 3.0 Target: All Architecture/Host ARM OS: Status: UNCONFIRMED Severity: critical Priority: low Component: Other Assignee: unassigned@bugs.ecos.sourceware.org Reporter: akinin_a@oaoesp.ru CC: ecos-bugs@ecos.sourceware.org Created attachment 2540 --> http://bugs.ecos.sourceware.org/attachment.cgi?id=3D2540&action=3Dedit Most of the program code and the description in the application. (pdf file) Hello. We had a problem when programming in our controller. That we have: 1. LPC3210, ARM-9, eCos 3.0 2. thread - "Main cycle" cyg_thread_create ( PRI_MAIN_CYCLE,// priority MainCycle, // entry 0, // entry parameter "Main cycle", // name &thread_stack[MAIN_THREAD], // stack STACK_SIZE, // stack size=20=20 &handle[MAIN_THREAD], // handle &thread_data[MAIN_THREAD]); // thread data structure 3. Interrupt ADC ( 1 per 200 microseconds) 4. Two different cycle on thred =E2=80=9CMain cycle" int it; float mtest_element[101]; int mtest_intelement[101]; long long mtest_longelement[101]; part code 1: mtest_longelement[it]=3D(long long)mtest_element[it]; if(mtest_longelement[it]!=3D(long long)it) { diag_printf("ERROR err_i %d int %d \n", mtest_longelement[it], it); } part code 2: mtest_intelement[it]=3D(int)mtest_element[it]; if(mtest_intelement[it]!=3Dit) { diag_printf("ERROR err_i %d int %d \n", mtest_intelement[it], it); } Case 1 When we use an array of "long long" type and ADC interrupt is enabled all is OK. Case 2 When we use an array of "int" type and ADC interrupt is enabled there is da= ta corruption. Case 3 When we use an array of "int" type and ADC interrupt is disabled all is OK = too. What wrong? We certainly observe that the interrupt handler working with VFP modifies f= loat data used in other thread. How and where is the VFP state saving realized? Most of the program code in the attachment. Thank you, Andrey. --=20 You are receiving this mail because: You are the assignee for the bug. >>From ecos-bugs-return-10880-listarch-ecos-bugs=sources.redhat.com@sourceware.org Wed Sep 03 13:41:27 2014 Return-Path: Delivered-To: listarch-ecos-bugs@sources.redhat.com Received: (qmail 2025 invoked by alias); 3 Sep 2014 13:41:27 -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 Delivered-To: mailing list ecos-bugs@sourceware.org Received: (qmail 2001 invoked by uid 89); 3 Sep 2014 13:41:27 -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 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, 03 Sep 2014 13:41:26 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 88EDEA88AB7 for ; Wed, 3 Sep 2014 14:41:23 +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 natTSEH4a0vH; Wed, 3 Sep 2014 14:41:23 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1002008] using floating-point operations Date: Wed, 03 Sep 2014 13:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Other X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: akinin_a@oaoesp.ru 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: rep_platform Message-ID: In-Reply-To: References: 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: 2014/txt/msg00247.txt.bz2 Content-length: 438 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1002008 Andrey changed: What |Removed |Added ---------------------------------------------------------------------------- Target|All |Custom (Customer specific) -- You are receiving this mail because: You are on the CC list for the bug.