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

Function activate_me

util/intelmetool/src/intelmetool.c:175–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static int activate_me(void)
176{
177 const uint32_t rcba = get_rcba_phys();
178 if (debug)
179 printf("RCBA addr: 0x%08x\n", rcba);
180 if (rcba > 0) {
181 if (read_rcba32(FD2, &fd2)) {
182 printf("Error reading RCBA\n");
183 return 1;
184 }
185 if (write_rcba32(FD2, fd2 & ~0x2)) {
186 printf("Error writing RCBA\n");
187 return 1;
188 }
189 if (debug && (fd2 & 0x2))
190 printf("MEI was hidden on PCI, now unlocked\n");
191 else if (debug)
192 printf("MEI not hidden on PCI, checking if visible\n");
193 }
194
195 return 0;
196}
197
198static void rehide_me(void)
199{

Callers 2

dump_me_infoFunction · 0.85
dump_bootguard_infoFunction · 0.85

Calls 4

get_rcba_physFunction · 0.85
printfFunction · 0.85
read_rcba32Function · 0.85
write_rcba32Function · 0.85

Tested by

no test coverage detected