diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-12-04 00:23:16 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-01-24 21:49:41 +0000 |
commit | 8bf162765f4268b31ac17e9fe398f69713752440 (patch) | |
tree | 6f4d01ced7ad309b1bdcc643da195d365d55a6a1 | |
parent | 68e7006a78c2bcc2fc70fc8eb2b622fa6140d48c (diff) | |
download | src-8bf162765f4268b31ac17e9fe398f69713752440.tar.gz src-8bf162765f4268b31ac17e9fe398f69713752440.zip |
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
(cherry picked from commit 67e39a0d1bdb24967591721bf7c995d61e0e1c2d)
-rw-r--r-- | stand/efi/loader/bootinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/efi/loader/bootinfo.c b/stand/efi/loader/bootinfo.c index c5f0291c9e6e..b93f91dfaf15 100644 --- a/stand/efi/loader/bootinfo.c +++ b/stand/efi/loader/bootinfo.c @@ -415,7 +415,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; |