* Re : where to set the BEV to normal of status in kernel source?
@ 2005-12-02 13:42 Florian DELIZY
2005-12-02 13:52 ` Kevin D. Kissell
0 siblings, 1 reply; 2+ messages in thread
From: Florian DELIZY @ 2005-12-02 13:42 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1012 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Re : where to set the BEV to normal of status in kernel source?
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
0 siblings, 0 replies; 2+ messages in thread
From: Kevin D. Kissell @ 2005-12-02 13:52 UTC (permalink / raw)
To: Florian DELIZY; +Cc: linux-mips
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
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-02 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox