Chris_F
August 14th, 2008, 10:31 AM
I need to write a kernel mode driver (this is not a device driver, really a pseudo driver I guess) for WIndows XP that will allocate a specific portion of memory in ram. Once allocated it only needs to keep it allocated and do nothing further.
I have this laptop that has a small section of defective memory in the first DIMM, which is soldered directly to the motherboard. Its a 1GB module with defects located at about 726MB. Replacment would be the cost of a new laptop (its not mine, I'm doing this for someone else with the intent of releasing it for people with similar problems)
My hope is that a kernel mode driver would be able to allocate that region of ram, making it unavailable for use by other user mode apps or other drivers. It would simply allocate it and then do nothing with it.
I really dont know how to go about reserving a spacific location, or how one would go about finding out what virtual address corresponded to a physical address of ram.
I've writen a few simple kernel modules in linux, but I've never writen a Windows NT driver before.
I have this laptop that has a small section of defective memory in the first DIMM, which is soldered directly to the motherboard. Its a 1GB module with defects located at about 726MB. Replacment would be the cost of a new laptop (its not mine, I'm doing this for someone else with the intent of releasing it for people with similar problems)
My hope is that a kernel mode driver would be able to allocate that region of ram, making it unavailable for use by other user mode apps or other drivers. It would simply allocate it and then do nothing with it.
I really dont know how to go about reserving a spacific location, or how one would go about finding out what virtual address corresponded to a physical address of ram.
I've writen a few simple kernel modules in linux, but I've never writen a Windows NT driver before.