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:
parent
cc623784c1
commit
67e39a0d1b
@ -413,7 +413,7 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
|||||||
#endif
|
#endif
|
||||||
bi_load_efi_data(kfp, exit_bs);
|
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);
|
kernend = roundup(addr + size, PAGE_SIZE);
|
||||||
*kernendp = kernend;
|
*kernendp = kernend;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user