René Kijewski abdb3ef2a4 x86: add read-before-write check at runtime
Finding read-before-writes statically is quite difficult. In native we
can use valgrind, but on boards without an MMU we are out of luck.

x86 has an MMU, let's use it.

If `-DDEBUG_READ_BEFORE_WRITE` was set, then pages on the heap get
initialized upon first use. If the page was read before written, then a
debug message with the virtual and physical address of the memory
location is printed, as well as the address of the offending instruction.
2014-05-31 19:45:19 +02:00
..
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00
2014-05-25 13:40:29 +02:00