From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14969 invoked by alias); 3 May 2011 01:18:36 -0000 Received: (qmail 14958 invoked by uid 22791); 3 May 2011 01:18:35 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 May 2011 01:18:22 +0000 Received: by vws4 with SMTP id 4so6014957vws.0 for ; Mon, 02 May 2011 18:18:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.18.47 with SMTP id t15mr1446318vdd.48.1304385501075; Mon, 02 May 2011 18:18:21 -0700 (PDT) Received: by 10.52.110.230 with HTTP; Mon, 2 May 2011 18:18:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 03 May 2011 01:18:00 -0000 Message-ID: Subject: Re: [ECOS] Miss calling ASR in sched.cxx From: Huang Yi To: ecos-devel@sourceware.org, kiron hy Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-05/txt/msg00000.txt.bz2 2011/4/22 kiron : > When enable both CYGSEM_KERNEL_SCHED_ASR_SUPPORT and > CYGIMP_KERNEL_INTERRUPTS_DSRS, consider that local variable call_asr > is set to true and clear the asr_pending flag of current thread, but > has DSRs_pending. It will continue the while loop and the call_asr's > value is re-initialized to false, code path will miss to call ASR. > > Posix timer use ASR to deliver signal,If missing to call ASR, and > signal will not been delivered. Unfortunately, posix time subsystem > don't try to reset the asr_pending flag (see alarm_action() in > packages/compat/posix/current/src/time.cxx), and the timer was > disarmed forever (If it is a interval timer). > > here is a small patch to fix this. > > Huang Yi > ------------------------ Anybody can review this patch? or I should send the mail to another mail list? -- Huang Yi (kiron) -------------------