Skip to contentSkip to conversation

Whether kernel page table is loaded in exception handler?

DISCUSSION Wang, Baojun 1 participant 1 message Oct 28, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

On Sunday 28 October 2007 22:58:29, Barisa Kisku wrote:

Quoted 10 lines

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

Signature · 5 lines
Wang, Baojun                                        Lanzhou University
Distributed & Embedded System Lab              http://dslab.lzu.edu.cn
School of Information Science and Engeneering        [email protected]
Tianshui South Road 222. Lanzhou 730000                     .P.R.China
Tel:+86-931-8912025                                Fax:+86-931-8912022