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

Function timestamp_cache_get

src/lib/timestamp.c:29–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static struct timestamp_table *timestamp_cache_get(void)
30{
31 struct timestamp_table *ts_cache = NULL;
32
33 if (!ENV_ROMSTAGE_OR_BEFORE)
34 return NULL;
35
36 if (REGION_SIZE(timestamp) < sizeof(*ts_cache)) {
37 BUG();
38 } else {
39 ts_cache = (void *)_timestamp;
40 }
41
42 return ts_cache;
43}
44
45static struct timestamp_table *timestamp_alloc_cbmem_table(void)
46{

Callers 2

timestamp_table_getFunction · 0.85
timestamp_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected