• Jes Sorensen's avatar
    [PATCH] ia64 specific /dev/mem handlers · afb7359a
    Jes Sorensen authored
    Convert /dev/mem read/write calls to use arch_translate_mem_ptr if
    available.  Needed on ia64 for pages converted fo uncached mappings to
    avoid it being accessed in cached mode after the conversion which can lead
    to memory corruption.  Introduces PG_uncached page flag for marking pages
    uncached.
    
    Also folds do_write_mem into write_mem as it was it's only user.
    
    Use __ARCH_HAS_NO_PAGE_ZERO_MAPPED for architectures to indicate they
    require magic handling of the zero page (Sparc and m68k).
    Signed-off-by: default avatarJes Sorensen <jes@wildopensource.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    afb7359a
io.h 9.48 KB