From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4813 invoked by alias); 29 Oct 2004 09:00:30 -0000 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 Received: (qmail 4645 invoked from network); 29 Oct 2004 09:00:25 -0000 Received: from unknown (HELO calvin.codito.co.in) (203.199.140.162) by sourceware.org with SMTP; 29 Oct 2004 09:00:25 -0000 Received: from yahoo.com (blackmagic.codito.co.in [192.168.100.37]) by calvin.codito.co.in (8.12.10/8.12.10) with ESMTP id i9T901qb003244; Fri, 29 Oct 2004 14:30:03 +0530 Message-ID: <418209EC.1070606@yahoo.com> Date: Fri, 29 Oct 2004 10:00:00 -0000 From: sandeep User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 MIME-Version: 1.0 To: Sam Pham CC: Jay Foster , eCos Discuss References: <20041028173904.91930.qmail@web54106.mail.yahoo.com> In-Reply-To: <20041028173904.91930.qmail@web54106.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] clock_settime() help X-SW-Source: 2004-10/txt/msg00427.txt.bz2 Sam Pham wrote: >>clock to the current time. At first, I called >>clock_settime() inside my ISR, and then outside of >>this ISR, I called clock_gettime() to verify if the >>current time was set. I noticed that sometimes >>clock_settime() failed because clock_gettime() >>returned a non-current time value. So I decided to >>call clock_settime() in a thread with all interrupts >>disabled by calling function >>cyg_interrupt_disable(). >>However, I still observed the same failure as >>before. some very dumb questions - - what do you mean by that clock_settime failed?? - when you say "clock_gettime()returned a non-current time value", you mean it returned a value lesser or more than current time? - how do you find current time? is your order clock_gettime get current time compare them OR get current time clock_gettime compare them - if above are your steps, have you tried doing these under disabled interrupts and found same results? i am not talking of clock_settime with disabled interrupts, here. sandeep -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss