stand/efi: Document the copy size trick

We call bi_copymodules twice: once with 0 and once with the size of the
arena. We do this to find the size, it turns out. Document this.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-12-03 17:23:16 -07:00
parent cc623784c1
commit 67e39a0d1b

View File

@ -413,7 +413,7 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
#endif
bi_load_efi_data(kfp, exit_bs);
size = md_copymodules(0, is64);
size = md_copymodules(0, is64); /* Find the size of the modules */
kernend = roundup(addr + size, PAGE_SIZE);
*kernendp = kernend;