How can I read/write registers and physical memory regions under Linux?

How can I read/write registers and physical memory regions under Linux?

This tar archive contains a simple tool providing reading and writing at physical addresses under Linux. Source code as well as binaries for OABI and EABI are included.