From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: incorrect panic("failed to get clock for system timer"); ??
Date: Tue, 1 Jun 2010 18:54:03 +0100 [thread overview]
Message-ID: <20100601175403.GA6644@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <4C0539E4.9090501@gmail.com>
On Tue, Jun 01, 2010 at 12:48:36PM -0400, f. achkar wrote:
> Hi,
> Newbie debugging Linux-2.6.32-9 on S3C2450, the kernel seems to panic at :
> s3c2410_timer_init () at arch/arm/plat-s3c/time.c:256
>
> if (IS_ERR(timerclk))
> panic("failed to get clock for system timer");
>
> more precisely 'if (IS_ERR(timerclk))' is non-null !?! although the
> 'timerclk' seem to be fine:
> (gdb) print *timerclk
> $27 = {list = {next = 0xc04a933c, prev = 0xc04a93ac}, owner = 0x0,
> parent = 0xc04abfd4, name = 0xc042c5a1 "timers", id = -1,
> usage = 0, rate = 0, ctrlbit = 1024, enable = 0xc009631c
> <s3c2443_clkcon_enable_p>, set_rate = 0, get_rate = 0,
> round_rate = 0, set_parent = 0}
> (gdb) s
> 257 panic("failed to get clock for system timer");
> (gdb) print (unsigned long)(timerclk)
> $28 = 3226112884
> (gdb)
>
> I'm not sure why 'IS_ERR(timerclk)' is holding true? or is it a bug ?
> thanks,
Looks to me like a compiler bug. Your timerclk is 0xC04A9374, which
certainly isn't a value which IS_ERR() should return true for.
prev parent reply other threads:[~2010-06-01 17:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 16:48 incorrect panic("failed to get clock for system timer"); ?? f. achkar
2010-06-01 17:54 ` Russell King - ARM Linux [this message]
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=20100601175403.GA6644@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.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;
as well as URLs for NNTP newsgroup(s).