From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20404 invoked by alias); 15 Jul 2002 03:26:00 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 20397 invoked from network); 15 Jul 2002 03:25:59 -0000 Received: from unknown (HELO sina.com) (202.108.35.242) by sources.redhat.com with SMTP; 15 Jul 2002 03:25:59 -0000 Received: (qmail 27210 invoked by uid 99); 15 Jul 2002 03:13:58 -0000 Message-ID: <20020715031358.27209.qmail@sina.com> From: zhlg_shuhan To: ecos-discuss@sources.redhat.com MIME-Version: 1.0 Date: Sun, 14 Jul 2002 20:26:00 -0000 X-Priority: 3 Subject: [ECOS] On RTC's isr! X-SW-Source: 2002-07/txt/msg00197.txt.bz2 hi,all. why not RTC's isr call dsr_post()? then,how rtc's dsr() was called? cyg_uint32 Cyg_RealTimeClock::isr(cyg_vector vector, CYG_ADDRWORD data) { // CYG_REPORT_FUNCTION(); #if defined(CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY) && defined(HAL_CLOCK_LATENCY) if (measure_clock_latency) { cyg_int32 delta; HAL_CLOCK_LATENCY(&delta); // Note: Ignore a latency of 0 when finding min_clock_latency. if (delta > 0) { // Valid delta measured total_clock_latency += delta; total_clock_interrupts++; if (min_clock_latency > delta) min_clock_latency = delta; if (max_clock_latency < delta) max_clock_latency = delta; } } #endif CYG_INSTRUMENT_CLOCK( ISR, 0, 0); HAL_CLOCK_RESET( CYGNUM_HAL_INTERRUPT_RTC, CYGNUM_KERNEL_COUNTERS_RTC_PERIOD ); Cyg_Interrupt::acknowledge_interrupt(CYGNUM_HAL_INTERRUPT_RTC); #if defined(CYGVAR_KERNEL_COUNTERS_CLOCK_DSR_LATENCY) HAL_CLOCK_READ(&clock_dsr_start); #endif return Cyg_Interrupt::CALL_DSR|Cyg_Interrupt::HANDLED; } and in rtc's dsr(),parameter count maybe >1,but when i check call_pending_DSRS(),i found count=1! why? zhlg ______________________________________ =================================================================== ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn) ÐÂÀË·ÖÀàÐÅÏ¢£º¶þÊÖÊг¡×ßÒ»×ߣ¬¸Ã³öÊÖʱ¾Í³öÊÖ£¡ (http://classad.sina.com.cn/2shou/) -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss