control the modules load addresses,
which is independent to whether the kernel relocatable tag is present or
not.
Signed-off-by: Zide Chen
---
grub-core/loader/multiboot.c | 35 ++-
grub-core/loader/multiboot_mbi2.c | 24 +
include/grub/multiboot2.h
version to 2.1, and add 2020 to copyright.
Signed-off-by: Zide Chen
---
configure.ac | 2 +-
doc/multiboot.texi | 57 +-
doc/multiboot2.h | 12 ++
3 files changed, 69 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
-by: Zide Chen
---
doc/multiboot.texi | 41 +
doc/multiboot2.h | 11 +++
2 files changed, 52 insertions(+)
diff --git a/doc/multiboot.texi b/doc/multiboot.texi
index df8a0d056e76..758ef7fd1e2d 100644
--- a/doc/multiboot.texi
+++ b/doc
control the modules load addresses,
which is independent to whether the kernel relocatable tag is present or
not.
V2: declare size as grub_ssize_t to resolve Werror=sign-compare
compiling issue.
Signed-off-by: Zide Chen
---
grub-core/loader/multiboot.c | 26 ++
grub-core
control the modules load addresses,
which is independent to whether the kernel relocatable tag is present or
not.
Signed-off-by: Zide Chen
---
grub-core/loader/multiboot.c | 22 --
grub-core/loader/multiboot_mbi2.c | 23 +++
include/grub/multiboot2.h
Also change the name from "relocatable header tag" to "kernel relocatable
tag" to make it less confusing. These two tags are independent from each
other.
Signed-off-by: Zide Chen
---
doc/multiboot.texi | 51 +-
doc/multiboot2.h
on was 0x0.
With this patch, the lowest module load address is set to 1MB even if this
quirk is not enabled.
Tested on KBL NUC loading ACRN Hypervisor.
v3: update commit messages
v4: don't round up lowest_addr for Multiboot2
Signed-off-by: Zide Chen
---
grub-core/loader/i386/multiboot_mbi
ate commit messages
Signed-off-by: Zide Chen
---
grub-core/loader/i386/multiboot_mbi.c | 1 -
grub-core/loader/multiboot.c | 23 ---
grub-core/loader/multiboot_elfxx.c| 7 ---
grub-core/loader/multiboot_mbi2.c | 2 ++
include/grub/multiboot.h
ng code in multiboot_elfxx.c is able to calculate the
highest_load for mutiboot2 already.
At the end, the adjusted GRUB_MULTIBOOT(highest_load) is used as the
lowest address to allocate memory for loading modules.
Signed-off-by: Zide Chen
---
grub-core/loader/i386/multiboot_mbi.c | 1 -
grub-core/loader/m
In multiboot2, currently there is no way to control where to load the
modules. In case of user wants to reserve low address for specific
usage, this quirk is useful.
Signed-off-by: Zide Chen
---
grub-core/loader/i386/multiboot_mbi.c | 1 -
grub-core/loader/multiboot.c | 23
10 matches
Mail list logo