| 30 | BOOT_STATE_INIT_ENTRY(BS_DEV_INIT_CHIPS, BS_ON_ENTRY, ramoops_alloc, NULL); |
| 31 | |
| 32 | void 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 | } |
no test coverage detected