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

Function enable_cpu_read_me

util/ifdtool/ifdtool.c:1570–1587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1568}
1569
1570static void enable_cpu_read_me(const char *filename, char *image, int size)
1571{
1572 int rd_shift;
1573 struct fmba *fmba = find_fmba(image, size);
1574
1575 if (!fmba)
1576 exit(EXIT_FAILURE);
1577
1578 if (ifd_version >= IFD_VERSION_2)
1579 rd_shift = FLMSTR_RD_SHIFT_V2;
1580 else
1581 rd_shift = FLMSTR_RD_SHIFT_V1;
1582
1583 /* CPU/BIOS can read ME. */
1584 fmba->flmstr1 |= (1 << REGION_ME) << rd_shift;
1585
1586 write_image(filename, image, size);
1587}
1588
1589static void unlock_descriptor(const char *filename, char *image, int size)
1590{

Callers 1

mainFunction · 0.85

Calls 3

find_fmbaFunction · 0.85
exitFunction · 0.85
write_imageFunction · 0.85

Tested by

no test coverage detected