• David Mosberger's avatar
    [PATCH] Make get_user_pages() work again for ia64 gate area · cf8b1162
    David Mosberger authored
    Changeset
    
      roland@redhat.com[torvalds]|ChangeSet|20040624165002|30880
    
    inadvertently broke ia64 because the patch assumed that pgd_offset_k() is
    just an optimization of pgd_offset(), which it is not.  This patch fixes
    the problem by introducing pgd_offset_gate().  On architectures on which
    the gate area lives in the user's address-space, this should be aliased to
    pgd_offset() and on architectures on which the gate area lives in the
    kernel-mapped segment, this should be aliased to pgd_offset_k().
    
    This bug was found and tracked down by Peter Chubb.
    
    Signed-off-by: <davidm@hpl.hp.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    cf8b1162
pgtable.h 3.03 KB