34f6038d | 21-Feb-2023 |
Aaron LI <aly@aaronly.me> |
boot/common: Use full root paths for MODINFO_NAME
Previously, only the basename of kernel/modules was stored in the MODINFO_NAME field (i.e., 'f_name' field of 'struct preloaded_file'). So kldstat(2
boot/common: Use full root paths for MODINFO_NAME
Previously, only the basename of kernel/modules was stored in the MODINFO_NAME field (i.e., 'f_name' field of 'struct preloaded_file'). So kldstat(2) was unable to obtain the full paths of the kernel and preloaded modules.
This commit makes the full paths be stored in the MODINFO_NAME field. After bootstrap, the boot partition is mounted at '/boot', so these full paths must start with '/boot' (e.g., '/boot/kernel/kernel') for kernel use.
show more ...
|
138a936f | 19-Feb-2023 |
Aaron LI <aly@aaronly.me> |
boot/common: Fix passing of wrong variable in file_load()
In file_load(), the l_load() method should be passed the argument 'dest' instead of the global variable 'loadaddr'. The bug didn't cause re
boot/common: Fix passing of wrong variable in file_load()
In file_load(), the l_load() method should be passed the argument 'dest' instead of the global variable 'loadaddr'. The bug didn't cause real problem because they're the same. Neverthless, fix it.
Obtained-from: FreeBSD (commit 0a215cf2d80bf9f44d5e01266de38c26df071b7a)
show more ...
|