chiark / gitweb /
This patch replaces the existing OsLayer::VirtualToPhysical stub with
authornick.j.sanders <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
Mon, 7 Jan 2013 22:02:45 +0000 (22:02 +0000)
committernick.j.sanders <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
Mon, 7 Jan 2013 22:02:45 +0000 (22:02 +0000)
commit1dbb40a37bee31db4125b2f6ae0a5be1a87f063d
treea70566161389209267a0110a6e522a864cc2070f
parentaeef09178c954ee910caa6df29199eb0accb7ede
This patch replaces the existing OsLayer::VirtualToPhysical stub with
an actual implementation that translates addresses via the Linux
/proc/self/pagemap interface. This causes failing memory locations to
be reported with both virtual and physical address, and facilitates
isolating a defective memory module.

Like many other functions currently implemented in the generic OsLayer
class, this functionality is specific to Linux and would need to be
moved to a respective subclass if proper multi-OS support ever gets
implemented.

Signed-off-by: Julius Werner <jwerner@chromium.org>
src/os.cc
src/os.h