summaryrefslogtreecommitdiff
path: root/peek.cpp
blob: c9c854213488235ccd7dee7bc6e5da2ba5842e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "nvlib.h"

int main(int argc, char** argv)
{
	std::auto_ptr<nv_device> dev;
	dev.reset(nv_device::open_default());

	printf("%08x\n", dev->rd32(strtoul(argv[1], 0, 0)));
	return 0;
}