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
> I'm working on a device driver for a device that sits on the PC
> memory bus. I need to reserve/protect the memory range that the
> device occupies from the rest of the kernel/system. How do I do
> that? I think I see how I can mark blocks that are never to be
> touched, but in this case the driver (obviously) needs to be able to
> touch them, but the rest of the kernel must be hands-off.

If its in the ISA or PCI space then we wont touch it. If its actually mapped
as if it was part of RAM then the BIOS is responsible for reporting top of
memory below it in the memory sizing calls, and optionally reporting it
reserved as hole in the newer E820 call.

We then just follow the bios. You can also reserve blocks of memory by
hacking arch/i386/mm/init.c and marking them reserved


-
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    [W:0.071 / U:0.512 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site