]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/booke: Don't get and use the load offset for TOC on APs
authorJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 11 Dec 2018 02:03:00 +0000 (02:03 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 11 Dec 2018 02:03:00 +0000 (02:03 +0000)
commit9d720d45c975670de38ea2187877c5adc389b349
treeaf47e41cbd56c26e1741fe5a0d6958b7ed3db0f5
parentb2b1708d5991878d6205ab1a1cae5762d956f129
powerpc/booke: Don't get and use the load offset for TOC on APs

The code was a near exact copy of the code in startup, but it doesn't need
the complexity since the kernel is already relocated.  With
VM_MIN_KERNEL_ADDRESS as currently set to KERNBASE, this doesn't cause a
problem, because it's a zero offset.  However, when KERNBASE is changed to a
physical load address, it then has a non-zero offset, and ends up with an
invalid stack pointer, causing the AP to hang.
sys/powerpc/booke/locore.S