Page MenuHomeFreeBSD

powerpc64: fix loader regression
ClosedPublic

Authored by luporl on Mon, Sep 20, 5:54 PM.

Details

Summary

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.

Test Plan

Tested on POWER9 VM, booting successfully with both Hash and Radix MMUs.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tsoome requested changes to this revision.Mon, Sep 20, 6:01 PM

I think, it is still not set early enough; you want to have it set up before we run devsw probes.

This revision now requires changes to proceed.Mon, Sep 20, 6:01 PM

Initialize archsw earlier.

This revision is now accepted and ready to land.Tue, Sep 21, 4:34 PM
This revision was automatically updated to reflect the committed changes.