From: "pl ice" <telent997@gmail.com>
To: "Zwane Mwaikambo" <zwane@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: when interrupt came, the kernel save pt_regs->eip always the same?
Date: Sun, 14 Dec 2008 10:59:44 +0800 [thread overview]
Message-ID: <41d311580812131859k41f1693lac4872773befe15d@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0812130854380.28394@montezuma.windriver.com>
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 <zwane@infradead.org>:
> 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
>
next prev parent reply other threads:[~2008-12-14 2:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <41d311580812130732u58f480ecgc21cb6f16365d45a@mail.gmail.com>
[not found] ` <41d311580812130740k6e0c139kacb5bad33b5b8fd4@mail.gmail.com>
2008-12-13 15:48 ` pl ice
2008-12-13 16:55 ` Zwane Mwaikambo
2008-12-14 2:59 ` pl ice [this message]
2008-12-21 20:11 ` Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41d311580812131859k41f1693lac4872773befe15d@mail.gmail.com \
--to=telent997@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®