[lkml]   [2002]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Reserving physical memory at boot time
    On Tue, 3 Dec 2002, Duncan Sands wrote:

    > I would like to reserve a particular page of physical memory when
    > the kernel boots. By reserving I mean that no one else gets to read
    > from it or write to it: it is mine. Any suggestions for the best way
    > to go about this with a 2.5 kernel?
    > Thanks,
    > Duncan.

    If you need a certain page reserved at boot-time you are out-of-luck.
    You can tell the kernel (using mem=xxx on the boot command line) that
    you have somewhat less memory than you do and then you can write a
    module that accesses the other memory that the kernel doesn't use.

    If you just want to make sure that your module owns a particular
    page that nobody else uses, just use ioremap() in your module to
    allocate a particular address. Those page(s) are now owned by
    your module and will never be paged. You can access those pages
    from user-space by providing some connectivity in your module
    (like read()/write()/ioctl()).

    Dick Johnson
    Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
    Bush : The Fourth Reich of America

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

     \ /
      Last update: 2005-03-22 13:31    [W:0.030 / U:9.976 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site