Detecting and using nvram memory
Sourish Mazumder
sourish at cloudbyte.com
Thu Oct 30 15:49:05 UTC 2014
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
More information about the freebsd-amd64
mailing list