All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Wang, Baojun" <wangbj@dslab.lzu.edu.cn>
To: linux-embedded@vger.kernel.org
Subject: override an interrupt handler?
Date: Fri, 13 Jun 2008 12:03:50 +0800	[thread overview]
Message-ID: <1213329830.17351.13.camel@localhost.dslab> (raw)

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

hi, 

  In my application I want to override the timer interrupt, and I'm
doing in this manner:

	disable_irq(0);		/* disable timer irq first */
	free_irq(0, NULL);	/* free the old irq */
	setup_irq(0, new_irq0);

setup_irq() return with 0, however I got the following OOPs message:

Bad page state in process 'swapper'
page:81003e20 flags:0x00000400 mapping:00000000 mapcount:0 count:0
Trying to fix it up, but a reboot is needed
Backtrace:
Call Trace:
[<8001819c>] dump_stack+0x8/0x34
[<8005ddc8>] bad_page+0x6c/0xa4
[<8005e600>] free_hot_cold_page+0x98/0x1e8
[<802074a8>] xm_init_clockevents+0x90/0xbc
[<80215998>] xm_init+0x208/0x240
[<80206680>] kernel_init+0xec/0x310
[<800149e0>] kernel_thread_helper+0x10/0x18


So, is it possible to override the timer interrupt handler? Any hints is
greatly appreciated.

  Regards,

-- 
Wang, Baojun                                                Lanzhou University
Distributed & Embedded System Lab                      http://dslab.lzu.edu.cn
School of Information Science and Engeneering          wangbj@dslab.lzu.edu.cn
Tianshui South Road 222. Lanzhou 730000                             .P.R.China
Tel: +86-931-8912025                                      Fax: +86-931-8912022


[-- Attachment #2: 这是信件的数字签名部分 --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

                 reply	other threads:[~2008-06-13  4:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1213329830.17351.13.camel@localhost.dslab \
    --to=wangbj@dslab.lzu.edu.cn \
    --cc=linux-embedded@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.