]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Ensure ppc32 cpu_switch routines set up Secure-PLT.
authorbdragon <bdragon@FreeBSD.org>
Tue, 26 May 2020 02:27:10 +0000 (02:27 +0000)
committerbdragon <bdragon@FreeBSD.org>
Tue, 26 May 2020 02:27:10 +0000 (02:27 +0000)
commitdd78d3471b8c0b3397ac49edcd8c19bdefb342b0
treee522a285ff632b5abcacf0bdbdc607ba3dd51208
parent1a33e36f1c3429bda32ea05c465e98720dcbc35b
[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