Date: Thu, 30 Oct 2014 11:26:00 +0530 From: Sourish Mazumder <sourish@cloudbyte.com> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-amd64@freebsd.org Subject: Re: memory type e820 Message-ID: <CABv3qbFCFUGRe7H2Huw0cTkX4sC7%2BK5pr82OyWg5Jk7sDv10Kg@mail.gmail.com> In-Reply-To: <201410071050.34285.jhb@freebsd.org> References: <CABv3qbEuggLT=9vsHAs5Rdp8a0V-=DG7DnPO1BQk4Ghn4r_9Dw@mail.gmail.com> <201410071050.34285.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I have nvram device in my system. I am able to detect the nvram device address by scanning the bios_smap. How do I add this new found nvram memory into kernel address space? On Tue, Oct 7, 2014 at 8:20 PM, John Baldwin <jhb@freebsd.org> wrote: > On Wednesday, September 24, 2014 5:12:37 am Sourish Mazumder wrote: > > Hi, > > > > Does freebsd has a linux equivalent of the function e820_any_mapped() ? > > This function is used to scan the system memory for a specific type. > > > > How to scan the system memory in freebsd? > > There is not an equivalent function, no. There is phys_avail[] (memory > pages > available for the VM system to use, doesn't include some early allocations > such as the message buffer) and dump_avail[] (all memory pages). > > What are you trying to scan for? > > -- > John Baldwin > -- Sourish Mazumder 9986309755
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABv3qbFCFUGRe7H2Huw0cTkX4sC7%2BK5pr82OyWg5Jk7sDv10Kg>