Date: Thu, 30 Oct 2014 22:09:27 +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: <CABv3qbFKSQrA0M8h3S_gdq0apPXRowNKoAMxA6pGf3pSgvsDsQ@mail.gmail.com> In-Reply-To: <201410301208.50164.jhb@freebsd.org> References: <CABv3qbEuggLT=9vsHAs5Rdp8a0V-=DG7DnPO1BQk4Ghn4r_9Dw@mail.gmail.com> <201410071050.34285.jhb@freebsd.org> <CABv3qbFCFUGRe7H2Huw0cTkX4sC7%2BK5pr82OyWg5Jk7sDv10Kg@mail.gmail.com> <201410301208.50164.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi John, I want to make a block device out of this nvram memory. So, I will need to perform memcpy() operation into this memory. Do I need to add this memory into the vm system, if I need to do operations like memcpy(). On Thu, Oct 30, 2014 at 9:38 PM, John Baldwin <jhb@freebsd.org> wrote: > On Thursday, October 30, 2014 1:56:00 am Sourish Mazumder wrote: > > 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? > > Do you just want to map it so you can get a valid pointer or do you want it > to be treated as normal memory by the VM system (i.e. available for use as > pages in the VM page cache)? > > -- > John Baldwin > -- Sourish Mazumder 9986309755
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABv3qbFKSQrA0M8h3S_gdq0apPXRowNKoAMxA6pGf3pSgvsDsQ>