lkml.org 
[lkml]   [2006]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: sys_mmap2 on different architectures
    From
    From: "H. Peter Anvin" <hpa@zytor.com>
    Date: Wed, 22 Feb 2006 16:05:39 -0800

    > Okay, what I'll do is that I'll hard-code 12 on i386, SPARC and ARM; on
    > other architectures I'll use getpagesize(). Of course, on 64-bit
    > architectures this is not an issue; there I just call sys_mmap.

    Please just use getpagesize(), even on sparc, that sys_mmap2() fixed
    shift of 12 is a bug.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-02-23 01:43    [W:0.018 / U:32.856 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site