lkml.org 
[lkml]   [2010]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 6/10] Documentation/vm: use better value for MAP_HUGETLB
    From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>

    documentation: slightly more correct value for MAP_HUGETLB in map_hugetlb.c

    still not correct for alpha, mips, parisc or xtensa but working out of
    the box in the most common architectures without having to deal with
    complicated macros or including architecture specific headers.

    Signed-off-by: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    ---
    Documentation/vm/map_hugetlb.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- lnx-2634-docs.orig/Documentation/vm/map_hugetlb.c
    +++ lnx-2634-docs/Documentation/vm/map_hugetlb.c
    @@ -19,7 +19,7 @@
    #define PROTECTION (PROT_READ | PROT_WRITE)

    #ifndef MAP_HUGETLB
    -#define MAP_HUGETLB 0x40
    +#define MAP_HUGETLB 0x40000 /* arch specific */
    #endif

    /* Only ia64 requires this */

    --



    \
     
     \ /
      Last update: 2010-05-18 01:33    [W:3.089 / U:1.360 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site