]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/ieee1275/init/ppc64: Return allocated address using context
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 30 Nov 2023 14:17:17 +0000 (09:17 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 5 Dec 2023 13:22:54 +0000 (14:22 +0100)
commitfe5d5e85711e765199853739e7e787621804778b
tree0dff9c9ae1bc49c68d1c832dd5cda164cf37a834
parentea2c93484943e4f6e217e1768df38ce74986fc59
kern/ieee1275/init/ppc64: Return allocated address using context

Return the allocated address of the memory block in the request structure
if a memory allocation was actually done. Leave the address untouched
otherwise. This enables a caller who wants to use the allocated memory
directly, rather than adding the memory to the heap, to see where memory
was allocated. None of the current callers need this but the converted
ieee1275 loader will make use of it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Cc: Hari Bathini <hbathini@linux.ibm.com>
Cc: Pavithra Prakash <pavrampu@in.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Carolyn Scherrer <cpscherr@us.ibm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>
grub-core/kern/ieee1275/init.c
include/grub/ieee1275/alloc.h