]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/ieee1275/init/ppc64: Add support for alignment requirements
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 30 Nov 2023 14:17:18 +0000 (09:17 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 5 Dec 2023 13:29:55 +0000 (14:29 +0100)
commitd49e86db2c15dd20f42262c0977f739ddf7bd6f6
tree4cb06ec70d9c85d6bb86b72d7157e04d2bf3f9d5
parentfe5d5e85711e765199853739e7e787621804778b
kern/ieee1275/init/ppc64: Add support for alignment requirements

Add support for memory alignment requirements and adjust a candidate
address to it before checking whether the block is large enough. This
must be done in this order since the alignment adjustment can make
a block smaller than what was requested.

None of the current callers has memory alignment requirements but the
ieee1275 loader for kernel and initrd will use it to convey them.

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