How to safely overwrite memory in use by variables?
Posted: Sat Jun 22, 2013 3:00 pm
Hello.
I'm trying to code a Memtest-like OS, that needs to test available memory for errors.
A very crude memory test could consist of overwriting a chunk of memory with a constant value, then go back and check if the value changed anywhere.
My question is: what can I do about the kernel's variables, which appear scattered in the memory?
Are there some segment relocation tricks that could help with this?
Thanks.
I'm trying to code a Memtest-like OS, that needs to test available memory for errors.
A very crude memory test could consist of overwriting a chunk of memory with a constant value, then go back and check if the value changed anywhere.
My question is: what can I do about the kernel's variables, which appear scattered in the memory?
Are there some segment relocation tricks that could help with this?
Thanks.