Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Kevin D. Kissell" <kevink@mips.com>
To: Florian DELIZY <florian.delizy@sagem.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Re : where to set the BEV to normal of status in kernel source?
Date: Fri, 02 Dec 2005 14:52:53 +0100	[thread overview]
Message-ID: <439051B5.9060500@mips.com> (raw)
In-Reply-To: <OF5E474B6B.A94FD801-ONC12570CB.004B3FC5-C12570CB.004B4D6D@sagem.com>

The BEV bit of Status is cleared by the macro setup_c0_status_pri which
is invoked in kernel_entry.  See arch/mips/kernel/head.S.  It's of course
possible that a bootloader will already have cleared it, but it should not
be necessary.  grep is your friend.  ;o)

		Regards,

		Kevin K.

Florian DELIZY wrote:
> Subject : where to set the BEV to normal of status in kernel source?
> 
>>i don't find it in load_mmu(), who can point out for me?
>>thanks!
> 
> 
> Well, if you are speaking about the BEV flag from the Status (SR) register 
> (CP0_STATUS aka $12 of the 1st coprocessor)
> then it controls the interruption/exception handler place, I don't see the 
> relation with mmu ... 
> 
> 
>>is that must be set in bootloader?
> 
> 
> OK, I see, it should be set to 0 by the boot loader so that the TLB 
> exceptions (related to the MMU) goes in RAM. So 
> the kernel does not change it actually and hope the boot loader did.
> 
> -- Florian Delizy
> 
> 
> 
> 
> 
> 

      reply	other threads:[~2005-12-02 13:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-02 13:42 Re : where to set the BEV to normal of status in kernel source? Florian DELIZY
2005-12-02 13:52 ` Kevin D. Kissell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=439051B5.9060500@mips.com \
    --to=kevink@mips.com \
    --cc=florian.delizy@sagem.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox