MCPcopy Create free account
hub / github.com/F-Stack/f-stack / add_efi_map_entry

Function add_efi_map_entry

freebsd/arm64/arm64/machdep.c:976–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974}
975
976static void
977add_efi_map_entry(struct efi_md *p)
978{
979
980 switch (p->md_type) {
981 case EFI_MD_TYPE_RT_DATA:
982 /*
983 * Runtime data will be excluded after the DMAP
984 * region is created to stop it from being added
985 * to phys_avail.
986 */
987 case EFI_MD_TYPE_CODE:
988 case EFI_MD_TYPE_DATA:
989 case EFI_MD_TYPE_BS_CODE:
990 case EFI_MD_TYPE_BS_DATA:
991 case EFI_MD_TYPE_FREE:
992 /*
993 * We're allowed to use any entry with these types.
994 */
995 physmem_hardware_region(p->md_phys,
996 p->md_pages * PAGE_SIZE);
997 break;
998 }
999}
1000
1001static void
1002add_efi_map_entries(struct efi_map_header *efihdr)

Callers

nothing calls this directly

Calls 1

physmem_hardware_regionFunction · 0.85

Tested by

no test coverage detected