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: "Dajie Tan" <jiankemeng@gmail.com>
Date: Wed, 12 Sep 2007 07:17:07 +0400
Cc: linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hjqDP28Octbk8Bfu59wV8yCOgvKAyjAWHZomrYmmgXQ=; b=cNfzFciO559cSV+ONlCw75F3zhnYSeJtgKkuupMN4R7jzVegIUB63D9yevCSA/MkILaVbR0tV9HASIpQ850UmmEHAnk1MFI6nm6RLUS+k707GG/qRZNZqZLFKnSojb+OLDA3zC++7ImClsFsAO7SG9QoXwl/Fx7i+TIQx/O57AI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o+2iE8Fts8ewMI7Cnj4QbJjQ9mClLnpxcrvnYjwcpK77QwCfw46Z5HIuYSR9f4fvLoKetteChb89Qfjk2y4jdGhbexE/tNmlblME6+hoA8tjdx1BF77xaTh6L7P0Z1NRN9S+94Ni75va8wNNjr3XO2W/cmrXf9AQm/dRvx2BXA0=
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
Which exception handler do you want to be nested?

If it's not a interrupt handler you can use STI(enable interrupts) or
CLI(disable interrupts) after SAVE_ALL for nesting support. They all
clear EXL bit in CP0_STATUS register and set the KSU=00.


2007/9/12, zhuzhenhua <zzh.hust@gmail.com>:
> hello, all
>              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.
>
>  Best Regards
>
>  --
>  zzh
>
>


-- 
为天地立心
为生民立命
为往圣继绝学
为万世开太平
<Prev in Thread] Current Thread [Next in Thread>