[Top] [All Lists]

Re: does the SAVE_ALL nesting in kernel?

To: zhuzhenhua <>
Subject: Re: does the SAVE_ALL nesting in kernel?
From: Ralf Baechle <>
Date: Wed, 12 Sep 2007 17:53:30 +0100
Cc: linux-mips <>
In-reply-to: <>
Original-recipient: rfc822;
References: <>
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.


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