]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Ensure ppc32 cpu_switch routines set up Secure-PLT.
authorBrandon Bergren <bdragon@FreeBSD.org>
Tue, 26 May 2020 02:27:10 +0000 (02:27 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Tue, 26 May 2020 02:27:10 +0000 (02:27 +0000)
commit8ef0c667f411d10d3c944e2ceda0eb88d2c0e290
treee522a285ff632b5abcacf0bdbdc607ba3dd51208
parentb04748bef27f561c3450c4afd750076cbbb05d99
[PowerPC] Ensure ppc32 cpu_switch routines set up Secure-PLT.

This is a correctness fix needed to enable the ifunc conversion of the pmap
in D24993.

Since we are making function calls that may need to go through the PLT, ensure
r30 is set up correctly.

This fixes crashes when booting with D24993 applied.

Reviewed by: jhibbits (in IRC)
Sponsored by: Tag1 Consulting, Inc.
sys/powerpc/powerpc/swtch32.S