From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3467 invoked by alias); 9 Jun 2006 07:23:20 -0000 Received: (qmail 3455 invoked by uid 22791); 9 Jun 2006 07:23:18 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Jun 2006 07:22:29 +0000 Received: by nz-out-0102.google.com with SMTP id i1so573510nzh for ; Fri, 09 Jun 2006 00:22:27 -0700 (PDT) Received: by 10.36.96.10 with SMTP id t10mr140568nzb; Fri, 09 Jun 2006 00:21:32 -0700 (PDT) Received: from taurus ( [82.100.245.2]) by mx.gmail.com with ESMTP id 5sm3921086nzk.2006.06.09.00.22.25; Fri, 09 Jun 2006 00:22:26 -0700 (PDT) Message-ID: <000501c68b95$45470cb0$ea14a8c0@taurus> From: "Monica Dsz" To: "ecos discuss" , "Gary Thomas" References: <000501c68b1a$68b523b0$ea14a8c0@taurus> <1149789900.15359.183.camel@hermes> Date: Fri, 09 Jun 2006 07:23:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2869 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] why is it wrong to call cyg_semaphore_post() in ISR??? X-SW-Source: 2006-06/txt/msg00091.txt.bz2 > It's a trade off - do you prevent interrupts (hence ISR routines) from > running during all data critical sections or do you simply not allow > those [ISR] functions to execute code that might perturb critical data? > eCos chooses the latter method which allows for lower interrupt latency > by putting off things until the DSR can be safely run. Thanks alot. this is exactly what I am searching for. I searched a lot to find it and I read alot but in vain I did not get it. Now I understood it. Once again thanks for your explanation. monica -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss