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

Function imdr_get_root_pointer

src/lib/imd.c:35–42  ·  view source on GitHub ↗

* The root pointer is relative to the upper limit of the imd. i.e. It sits * just below the upper limit. */

Source from the content-addressed store, hash-verified

33 * just below the upper limit.
34 */
35static struct imd_root_pointer *imdr_get_root_pointer(const struct imdr *imdr)
36{
37 struct imd_root_pointer *rp;
38
39 rp = relative_pointer((void *)imdr->limit, -sizeof(*rp));
40
41 return rp;
42}
43
44static void imd_link_root(struct imd_root_pointer *rp, struct imd_root *r)
45{

Callers 3

imdr_create_emptyFunction · 0.85
imdr_recoverFunction · 0.85

Calls 1

relative_pointerFunction · 0.85

Tested by

no test coverage detected