[PATCH v2] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-05-12 Thread Roger Pau Monne via Grub-devel
On failure to allocate from grub_relocator_firmware_alloc_region() in malloc_in_range() the function would stop enforcing the alignment, and the following was returned: lib/relocator.c:431: trying to allocate in 0x20-0xffbf9fff aligned 0x20 size 0x406000 lib/relocator.c:1197: allocated: 0

[PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-04-27 Thread Roger Pau Monne via Grub-devel
On failure to allocate from grub_relocator_firmware_alloc_region() in malloc_in_range() the function would stop enforcing the alignment, and the following was returned: lib/relocator.c:431: trying to allocate in 0x20-0xffbf9fff aligned 0x20 size 0x406000 lib/relocator.c:1197: allocated: 0

[PATCH v3] multiboot2: clarify usage of the address tag

2018-06-11 Thread Roger Pau Monne
Add a note to spell out that if the address tag is not present the file should be loaded using the elf header. Signed-off-by: Roger Pau Monné --- Cc: Daniel Kiper Cc: xen-de...@lists.xenproject.org --- Changes since v2: - Clarify that the address tag must be used if present. Changes since v1:

[PATCH v2] multiboot2: clarify usage of the address tag

2018-06-07 Thread Roger Pau Monne
Add a note to spell out that if the address tag is not present the file should be loaded using the elf header. Signed-off-by: Roger Pau Monné --- Cc: Daniel Kiper Cc: xen-de...@lists.xenproject.org --- Changes since v1: - s/elf/@sc{elf}/ - s/Multiboot/Multiboot2/ --- doc/multiboot.texi | 6 ++

[PATCH] multiboot2: clarify usage of the address tag

2018-06-05 Thread Roger Pau Monne
Add a note to spell out that if the address tag is not present the file should be loaded using the elf header. Signed-off-by: Roger Pau Monné --- Cc: Daniel Kiper Cc: xen-de...@lists.xenproject.org --- doc/multiboot.texi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/multiboot.te