* Re: Whether kernel page table is loaded in exception handler?
[not found] ` <200710290004.30586.wangbj@lzu.edu.cn>
@ 2007-10-28 16:04 ` Wang, Baojun
0 siblings, 0 replies; 2+ messages in thread
From: Wang, Baojun @ 2007-10-28 16:04 UTC (permalink / raw)
To: linuxppc-embedded, Barisa Kisku
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
On Sunday 28 October 2007 22:58:29, Barisa Kisku wrote:
> Hi,
> Whether kernel page table is loaded during the execution of exception
> handling.I tried to understand that bit code, but could n't find out
> during the execution of system call exception handling or external
> interrupt exception handling.
>
>
> thanks in advance.
>
> Barisa Kisku
the external interrupt / syscall exception is not responsible for loading page
tables. Depending on the type of exception, probably no more exception is
allowed if the exception have disabled the MSR EE bit. Otherwise it's
depending on the powerpc model, normally the kernel will search tlb first, if
there is a (Data/Insn) miss, the kernel will search the page table
entry(PTEs), if the PTE is founded, the kernel will reload tlb, otherwise it
will raise a page fault exception, this may ask the kernel to load the page
on demand, if the kernel could not load the requested the page, then we got a
double fault (page fault). I'm not sure this is 100% corrent, but help it
will help
Wang
--
Wang, Baojun Lanzhou University
Distributed & Embedded System Lab http://dslab.lzu.edu.cn
School of Information Science and Engeneering wangbj@lzu.edu.cn
Tianshui South Road 222. Lanzhou 730000 .P.R.China
Tel:+86-931-8912025 Fax:+86-931-8912022
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread