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

Function dumpmemfile

util/intelmetool/src/intelmetool.c:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static void dumpmemfile(uint8_t *phys, uint32_t size)
49{
50 FILE *fp = fopen("medump.bin", "w");
51 uint32_t i;
52 for (i = 0; i < size; i++) {
53 fprintf(fp, "%c", *((uint8_t *) (phys + i)));
54 }
55 fclose(fp);
56}
57
58static int isCPUGenuineIntel(void)
59{

Callers 1

dump_me_memoryFunction · 0.85

Calls 3

fopenFunction · 0.85
fprintfFunction · 0.85
fcloseFunction · 0.85

Tested by

no test coverage detected