]> git.baikalelectronics.ru Git - kernel.git/commit
x86: add a list for custom page fault handlers.
authorPekka Paalanen <pq@iki.fi>
Mon, 12 May 2008 19:20:56 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:16:38 +0000 (21:16 +0200)
commit15b3199066ca8ecd64790ed2e57db7c09685df6f
treee6268f782a96d7ce808f354b83be69d4b349659d
parent398452273b27eff6fc431dfa23144eab043b6ae8
x86: add a list for custom page fault handlers.

Provides kernel modules a way to register custom page fault handlers.
On every page fault this will call a list of registered functions. The
functions may handle the fault and force do_page_fault() to return
immediately.

This functionality is similar to the now removed page fault notifiers.
Custom page fault handlers are used by debugging and reverse engineering
tools. Mmiotrace is one such tool and a patch to add it into the tree
will follow.

The custom page fault handlers are called earlier in do_page_fault()
than the page fault notifiers were.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/Kconfig.debug
arch/x86/mm/fault.c
include/asm-x86/kdebug.h