[coreboot] Documenting the process of Timestamp collection during romstage

Alex G. mr.nuke.me at gmail.com
Tue Aug 14 07:19:04 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The idea of collecting timestamps during romstage is awesome. the only
problem is that the code that does that is completely undocumented.
Some stuff you figure out by looking at the code.
Then there's timestamp_init(tsc_t), whose argument is read by the
mainboard from some mysterious registers.
Then there's also:

build/lib/timestamp.romstage.o: In function `timestamp_init':
/home/mrnuke/Sources/coreboot/src/lib/timestamp.c:40: undefined
reference to `cbmem_add'
build/lib/timestamp.romstage.o: In function `timestamp_add':
/home/mrnuke/Sources/coreboot/src/lib/timestamp.c:58: undefined
reference to `cbmem_find'


Can someone please explain the proper procedure of getting timestamp
collection running. I'll even sacrifice myself and add doxygen-style
documentation for the next poor fella trying to implement this.

Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJQKd/IAAoJEL0kPHNPXJJKwQkP/jcz93TZXyCkg9vJMixk5vQB
CGifXjPcJGyAE0IfFZZivTk4mKDt6KWuFYDRHmtK4zcEaW/u3j8JBgTq2/QSbsS9
7z93BuRg4ei3HeTvxq5mEmRu/F3cikdHew17pZcLaX+4uuCli76ZnUVNachpIpwo
f6j5imnoLGGAmc5xdUhivZ+AGtpgFLPBWyksikpiXdmdPJAV8WT5j6G8sIMMy7Ji
RStOR+/zYEvpadGk76+RJ1uumpmhPWWS6eeSjabJ2wn65zaOzqmejRjR1tVHDeJm
v2pgciqNxr8c8Ch4YKwFjkJGanhe7EoI3GmW82WnzvzeVLatEBrVEtc1WaxcMx47
JNRCuJGG7TiaWnANYBlKEdWv6QQ1ZzaVvUfanzls8m9SDDlGElJFEGEBlp/4SpGR
PaCAzGRikf+bPFQ43tS2vl0kY7BIIdT0huvC/mrWNFkx+ubvRUeatp1nTLwoZhXX
73BLNw7Vp7yXU/ngknSlQ8XlZBoCIiM+MAec2BLnpvUDI7JAj2XuiJYaVplC92Gw
UzzkC+HtcAFIdUuKU3iEYs+0rjm3LSNGBA7AgPe/O+TMeRAehLIjW8+WXIDMItXZ
t2jljDpR8va0vKeEuXbedhds+raCJyvxmesbmQpUlK1yplSlJMlHdHFL6Mj9EoZn
67D/FNswHk/xLqWh8QuU
=LP+r
-----END PGP SIGNATURE-----




More information about the coreboot mailing list