lkml.org 
[lkml]   [2003]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: pgcl-2.6.0-test5-bk3-17
    On Sun, Nov 30, 2003 at 08:43:01AM -0800, William Lee Irwin III wrote:
    >> I wonder if this would be enough to get sysenter support going again.
    >> I've not got a sysenter-capable userspace around, so I can't really
    >> test this myself.
    >> vs. pgcl-2.6.0-test11-5

    On Sun, Nov 30, 2003 at 11:36:32PM -0800, William Lee Irwin III wrote:
    > Stack decoding fixes, shutting up some compiler warnings, and dumping
    > PAGE_SIZE and MMUPAGE_SIZE into /proc/meminfo (for lack of a better place).
    > The printk()'s down there should eventually get ripped out anyway for
    > minimal impact and a quieter boot, but until then...

    Woops, those page sizes were a bit off. Come to think of it, so is
    aio_setup_ring()...


    -- wli

    diff -prauN pgcl-2.6.0-test11-9/fs/aio.c pgcl-2.6.0-test11-10/fs/aio.c
    --- pgcl-2.6.0-test11-9/fs/aio.c 2003-11-27 21:55:19.000000000 -0800
    +++ pgcl-2.6.0-test11-10/fs/aio.c 2003-12-02 04:43:21.000000000 -0800
    @@ -187,8 +187,8 @@ static int aio_setup_ring(struct kioctx
    struct io_event *__event; \
    unsigned long pfn; \
    pfn = (info)->ring_pages[pos/AIO_EVENTS_PER_PAGE]; \
    - __event = kmap_atomic(pfn_to_page(pfn), km); \
    - __event += (pfn % PAGE_MMUCOUNT) * MMUPAGE_SIZE; \
    + __event = (void *)((char *)kmap_atomic(pfn_to_page(pfn), km) \
    + + MMUPAGE_SIZE * (pfn % PAGE_MMUCOUNT)); \
    __event += pos % AIO_EVENTS_PER_PAGE; \
    __event; \
    })
    diff -prauN pgcl-2.6.0-test11-9/fs/proc/proc_misc.c pgcl-2.6.0-test11-10/fs/proc/proc_misc.c
    --- pgcl-2.6.0-test11-9/fs/proc/proc_misc.c 2003-11-30 12:50:32.000000000 -0800
    +++ pgcl-2.6.0-test11-10/fs/proc/proc_misc.c 2003-12-02 00:42:13.000000000 -0800
    @@ -231,8 +231,8 @@ static int meminfo_read_proc(char *page,
    vmtot,
    vmi.used,
    vmi.largest_chunk,
    - K(PAGE_SIZE),
    - K(MMUPAGE_SIZE)
    + PAGE_SIZE >> 10,
    + MMUPAGE_SIZE >> 10
    );

    len += hugetlb_report_meminfo(page + len);
    -
    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: 2005-03-22 13:59    [W:0.022 / U:0.308 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site