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

Function read_fw_header

util/amdfwtool/amdfwread.c:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static int read_fw_header(FILE *fw, uint32_t offset, embedded_firmware *fw_header)
114{
115 if (read_header(fw, offset, fw_header, sizeof(embedded_firmware))) {
116 ERR("Failed to read fw header at 0x%x\n", offset);
117 return 1;
118 }
119
120 return fw_header->signature != EMBEDDED_FW_SIGNATURE;
121}
122
123/* Returns true if there's a PSP directory with the expected cookie */
124static bool test_if_psp_directory(FILE *fw, uint32_t offset, uint32_t expected_cookie)

Callers 1

mainFunction · 0.85

Calls 1

read_headerFunction · 0.85

Tested by

no test coverage detected