linux-mips
[Top] [All Lists]

Re: [PATCH] Make c0_compare_int_usable more bullet proof

To: ralf@linux-mips.org
Subject: Re: [PATCH] Make c0_compare_int_usable more bullet proof
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Mon, 22 Oct 2007 23:37:33 +0900 (JST)
Cc: linux-mips@linux-mips.org, ths@networkno.de
In-reply-to: <20071022093139.GA5588@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20071020.005445.75183929.anemo@mba.ocn.ne.jp> <20071022093139.GA5588@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Mon, 22 Oct 2007 10:31:39 +0100, Ralf Baechle <ralf@linux-mips.org> wrote:
> > Use write_c0_compare(read_c0_count()) to clear interrupt.
> > And use delta value based on its speed for faster probing.
> 
> Hmm...  This one makes c0_compare_int_usable() fails when I run a malta
> kernel on last week's qemu.

Well, with my qemu-system-mips (0.9.0 and cvs),
c0_compare_int_usable() always return 0 with/without my patch.

But if I made c0_compare_int_usable() always return 1, it works fine
with c0 counter interrupt.  Quite strange...

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>