lkml.org 
[lkml]   [2000]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Reserving a (large) memory block
Date
From
>   Now the device behaves just like memory to the BIOS during POST
> etc, and is in fact, exactly memory if no device drivers are loaded.
> If a device driver is loaded and it detects one or more of these
> devices then they and their memory ranges become obviously special.
> Now, we can detect the devices and where their address ranges are
> via the SMBUS and some careful probing so we know what we are trying
> to grab. The problem is just telling the rest of the kernel that in
> a clean VM&heap-happy manner.

Basically your base driver will have to do it at boot up time. Once that
memory is allocated to someone you may not be able to move the memory and
borrow the pages.

You don't neccessarily need the whole driver in the main kernel but you will
need to grab the devices, reserve the memory pages in question and mark them
as reserved before Linux gets going properly. Your actual users of these pages
can then be dynamically loaded.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site