linux-mips
[Top] [All Lists]

Re: does the SAVE_ALL nesting in kernel?

To: zhuzhenhua <zzh.hust@gmail.com>
Subject: Re: does the SAVE_ALL nesting in kernel?
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 12 Sep 2007 17:53:30 +0100
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <50c9a2250709111921g1b49cb0du7f97ebb3e1fb7d07@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <50c9a2250709111921g1b49cb0du7f97ebb3e1fb7d07@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.14 (2007-02-12)
On Wed, Sep 12, 2007 at 10:21:53AM +0800, zhuzhenhua wrote:

>             i have a mips board,  and the SDRAM speed(bus clock) is not too
> fast.
>              so i want change  the SAVE_ALL and RESTORE_ALL to use
> internal-ram(high speed).
>             i just wonder whether the SAVE_ALL netsting in kernel  for mips
> arch?
>             if not, i think  maybe 1k byte for SAVE_ALL is enough( 32regs
> X4, and some cp0_regs).
>             but if  the SAVE_ALL nesting, maybe i need to keep a stack in
> internal-ram.
>             thanks for any hints.

Nesting works but due to the use of k0/k1 you need to ensure SAVE_ALL is
only invoked with interrupts disabled.

  Ralf

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