MCPcopy Create free account
hub / github.com/coreboot/coreboot / dumpmsrdefs

Function dumpmsrdefs

util/msrtool/msrutils.c:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void dumpmsrdefs(const struct targetdef *t) {
184 const struct msrdef *m;
185 const struct msrbits *mb;
186 if (NULL == t)
187 return;
188 printf("# %s MSRs:\n", t->name);
189 for (m = t->msrs; !MSR_ISEOT(*m); m++) {
190 if (t->msrs != m)
191 printf("\n");
192 printf("# %s\n", m->symbol);
193 for (mb = m->bits; mb->size; mb++)
194 print_bitdef(stdout, mb, "\n");
195 printf("0x%08x\n", m->addr);
196 }
197}
198
199int dumpmsrdefsvals(FILE *f, const struct targetdef *t, const uint8_t cpu) {
200 struct msr val = MSR1(0);

Callers 1

mainFunction · 0.85

Calls 2

printfFunction · 0.85
print_bitdefFunction · 0.85

Tested by

no test coverage detected