[Top] [All Lists]

Re: [PATCH] Make c0_compare_int_usable more bullet proof

Subject: Re: [PATCH] Make c0_compare_int_usable more bullet proof
From: Atsushi Nemoto <>
Date: Mon, 22 Oct 2007 23:37:33 +0900 (JST)
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
On Mon, 22 Oct 2007 10:31:39 +0100, Ralf Baechle <> 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>