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

Function linux_parse_boot_param

freebsd/arm64/arm64/machdep_boot.c:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165#if defined(LINUX_BOOT_ABI) && defined(FDT)
166static vm_offset_t
167linux_parse_boot_param(struct arm64_bootparams *abp)
168{
169 struct fdt_header *dtb_ptr;
170 size_t dtb_size;
171
172 if (abp->modulep == 0)
173 return (0);
174 /* Test if modulep point to valid DTB. */
175 dtb_ptr = (struct fdt_header *)abp->modulep;
176 if (fdt_check_header(dtb_ptr) != 0)
177 return (0);
178 dtb_size = fdt_totalsize(dtb_ptr);
179 return (fake_preload_metadata(dtb_ptr, dtb_size));
180}
181
182#endif
183

Callers 1

parse_boot_paramFunction · 0.70

Calls 2

fdt_check_headerFunction · 0.85
fake_preload_metadataFunction · 0.70

Tested by

no test coverage detected