[lkml]   [1998]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: virt_to_bus and >1G of memory (was MAX_DMA_ADDRESS ...)
    In article <>,
    Jan Kasprzak <> wrote:
    > Can anybody explain this to me? Is (x)-PAGE_OFFSET at any chance
    >slower or less efficient than (x)&~PAGE_OFFSET?


    But the one using logical operations is safer in the presense of old
    drivers that don't do the right thing. There are some historical
    drivers that may mix physical and virtual addresses, and just masking
    off (or turning on) the high bits makes them work even though they

    For 2.3.x we definitely want to use the +-PAGE_OFFSET version.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:45    [W:0.026 / U:6.132 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site