Messages in this thread | | | Subject | Re: Reserving a (large) memory block | Date | Thu, 31 Aug 2000 17:12:03 +0100 (BST) | From | Alan Cox <> |
| |
> 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/
| |