Porting an embedded app to Linux, handling persistent data
I have a requirement to port an embedded application to Linux. Currently (ecos) it stores persistent global / static variables in its own bss area. This is battery backed so persistent across reboots / power cycles. I would like to port it to Linux as a user area application but am perplexed as to how I can retain the data persistence as it would require direct access to physical memory. I have considered using files but the data is too widely distributed and I'm worried about the timing implications. Does anyone have any suggestions as to how I might solve this.