Date: Thu, 30 Oct 2014 21:18:57 +0530 From: Sourish Mazumder <sourish@cloudbyte.com> To: freebsd-amd64@freebsd.org Subject: Detecting and using nvram memory Message-ID: <CABv3qbFrU7kBa-fbfXbecaVZUogpPz-YeZNocOrDh28Z4io3pw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I have a nvram module in my system. I am able to detect the nvram memory address via the bios_smap. Now I want to be able to access this nvram memory for operations like memcpy(). What do I need to do for able to access this nvram memory? I went over the hammer_time() function defined in sys/amd64/amd64/machdep.c file. Here we call the getmemsize() function where we create the phys_avail[] array and call the PHYS_TO_DMAP to map the message buffers. Finally we call msgbufinit() function. Is anything more needed to be done for physical memory to be accessed? -- Sourish Mazumder
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABv3qbFrU7kBa-fbfXbecaVZUogpPz-YeZNocOrDh28Z4io3pw>