]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initialize SPRG0 before its first possible use
authorluporl <luporl@FreeBSD.org>
Mon, 15 Oct 2018 16:43:07 +0000 (16:43 +0000)
committerluporl <luporl@FreeBSD.org>
Mon, 15 Oct 2018 16:43:07 +0000 (16:43 +0000)
commit52c76ce49fe47bd3a8cdf923e8caba1c7fea6b0f
tree724fddb1e2e1d7f5f3d2ed76fed21f9a4051328f
parentccccebe3aa0d348c8ddfa6057d8e947d45dbdde0
Initialize SPRG0 before its first possible use

At early boot, PCPU_GET(), that obtains a pointer from SPRG0, was being
used with SPRG0 not yet initialized. If it pointed to an invalid
address, the machine would hang.

Approved by: re(gjb), jhibbits(mentor)
sys/powerpc/powerpc/machdep.c