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

Function lb_ramoops

src/vendorcode/google/chromeos/ramoops.c:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30BOOT_STATE_INIT_ENTRY(BS_DEV_INIT_CHIPS, BS_ON_ENTRY, ramoops_alloc, NULL);
31
32void lb_ramoops(struct lb_header *header)
33{
34 void *buffer = cbmem_find(CBMEM_ID_RAM_OOPS);
35
36 if (buffer == NULL)
37 return;
38
39 struct lb_range *ramoops;
40 ramoops = (struct lb_range *)lb_new_record(header);
41 ramoops->tag = LB_TAG_RAM_OOPS;
42 ramoops->size = sizeof(*ramoops);
43 ramoops->range_start = (uintptr_t)buffer;
44 ramoops->range_size = CONFIG_CHROMEOS_RAMOOPS_RAM_SIZE;
45}

Callers 1

write_coreboot_tableFunction · 0.85

Calls 2

lb_new_recordFunction · 0.85
cbmem_findFunction · 0.50

Tested by

no test coverage detected