Skip to content
  • Ingo Molnar's avatar
    [PATCH] x86: compress the stack layout of do_page_fault() · 869f96a0
    Ingo Molnar authored
    
    
    This patch pushes the creation of a rare signal frame (SIGBUS or SIGSEGV)
    into a separate function, thus saving stackspace in the main
    do_page_fault() stackframe.  The effect is 132 bytes less of stack used by
    the typical do_page_fault() invocation - resulting in a denser
    cache-layout.
    
    (Another minor effect is that in case of kernel crashes that come from a
    pagefault, we add less space to the already existing frame, giving the
    crash functions a slightly higher chance to do their stuff without
    overflowing the stack.)
    
    (The changes also result in slightly cleaner code.)
    
    argument bugfix from "Guillaume C." <guichaz@gmail.com>
    
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    869f96a0