]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg/PrePi: Ensure timely execution of library constructors
authorArd Biesheuvel <ardb@kernel.org>
Wed, 18 Jan 2023 23:15:08 +0000 (00:15 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 26 Jan 2023 18:54:58 +0000 (18:54 +0000)
commit6c8a08bd8a6803c18a54267379e8f5d78c831796
tree6868619168d03bb95d973495cc0b22ba86ec67c4
parentd0ff1cae3a1ab20ffd5a1d80658c38c113585651
ArmVirtPkg/PrePi: Ensure timely execution of library constructors

PrePi has a bare metal entry point, and so it is in charge of calling
the library constructors once the C runtime has been initialized
sufficiently.

However, we are now relying on a HOB to have been constructed by the
time the MMU code runs, and so the constructors should be run before
that.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
ArmVirtPkg/PrePi/PrePi.c