Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753855AbYLNC7y (ORCPT ); Sat, 13 Dec 2008 21:59:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752139AbYLNC7q (ORCPT ); Sat, 13 Dec 2008 21:59:46 -0500 Received: from rv-out-0506.google.com ([209.85.198.237]:58696 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751087AbYLNC7p (ORCPT ); Sat, 13 Dec 2008 21:59:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=s4wu2AUsgr06cEhIDwOkGPq9ZiuD7YPU4UDrBkhbgy2xEABRnTqhVCuo/EDYDPuHC5 xyPWw0ZOedybXq5L1ViHd5cQ0lFECFT88rKSh2EtpYPqECq5D+0QDpok1uUdnJUyxBRT wSsMBpBCh2oA5SRuTS5O0t3Uwo8DmEOBm1uqQ= Message-ID: <41d311580812131859k41f1693lac4872773befe15d@mail.gmail.com> Date: Sun, 14 Dec 2008 10:59:44 +0800 From: "pl ice" To: "Zwane Mwaikambo" Subject: Re: when interrupt came, the kernel save pt_regs->eip always the same? Cc: linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <41d311580812130732u58f480ecgc21cb6f16365d45a@mail.gmail.com> <41d311580812130740k6e0c139kacb5bad33b5b8fd4@mail.gmail.com> <41d311580812130748o262fdb31se647e840977d90a9@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1084 Lines: 26 And the prototype about irq_handler changed, the 3th parameter "struct pt_regs" removed,How do i get the struct pt_regs in my interrupt handler because kernel doesn't deliver to me? 2008/12/14 Zwane Mwaikambo : > On Sat, 13 Dec 2008, pl ice wrote: > >> HI, >> These day i wanted get cpu context ,when interrupt came.BUT i >> found when interrupt came kernel saved cpu context in struct pt_regs >> and delivered to do_IRQ ,and i print the pt_regs->eip,they alway same >> on the same interrupt? >> The interrupt can come anytime,i think the eip will be very >> different every time.BUT i debug kernel ,print eip in the function >> do_IRQ,found it didn't run as i thought.Can anybody tell me why? > > If the cpu is idle, you have a higher probability that the idle function > is in regs->eip > > Zwane > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/