]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc64: fix loader regression
authorLeandro Lupori <luporl@FreeBSD.org>
Tue, 21 Sep 2021 20:22:42 +0000 (17:22 -0300)
committerLeandro Lupori <luporl@FreeBSD.org>
Tue, 21 Sep 2021 20:22:42 +0000 (17:22 -0300)
commit680ca739458ba8cba221ea74794c2cd9771c77f8
tree27c6e03304dbc915d6c3c7c75feb871efe1f80b9
parentbd84094a51c4648a7c97ececdaccfb30bc832096
powerpc64: fix loader regression

After b4cb3fe0e39a, loader started crashing on PowerPC64, with a
Program Exception (700) error. The problem was that archsw was
used before being initialized, with the new mount feature. This
change fixes the issue by initializing archsw earlier, before
setting currdev, that triggers the mount.

Reviewed by: tsoome
MFC after: 1 month
X-MFC-With: b4cb3fe0e39a
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D32027
stand/powerpc/ofw/main.c