misc: Rename config option `loader_dtb_path` -> `global_dtb` and document it
diff --git a/CONFIG.md b/CONFIG.md
index a7fc0a32..881047d2 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -85,6 +85,9 @@ Miscellaneous:
* `serial_baudrate` - If `serial` is set to `yes`, this specifies the baudrate
to use for serial I/O. Defaults to `115200`. BIOS only, ignored with Limine
UEFI.
+* `global_dtb` - If set, use this DTB instead of the firmware-provided DTB for
+ Limine itself, as well as for any booted entry whose protocol supports DTBs
+ and the DTB is not locally overridden with `dtb_path`.
* `default_entry` - 1-based entry index of the entry which will be
automatically selected at startup. If unspecified, it is `1`.
* `remember_last_entry` - If set to `yes`, remember last booted entry.
diff --git a/common/lib/misc.c b/common/lib/misc.c
index 851a018c..1ae38b59 100644
--- a/common/lib/misc.c
+++ b/common/lib/misc.c
@@ -146,7 +146,7 @@ void *get_device_tree_blob(const char *config, size_t extra_size) {
void *dtb = NULL;
{
- char *dtb_path = config_get_value(config, 0, config ? "dtb_path" : "loader_dtb_path");
+ char *dtb_path = config_get_value(config, 0, config ? "dtb_path" : "global_dtb");
if (dtb_path) {
struct file_handle *dtb_file;
if ((dtb_file = uri_open(dtb_path)) == NULL)
