Page MenuHomeFreeBSD

[PowerPC] Set fixed boot1.elf load address
ClosedPublic

Authored by bdragon on Apr 29 2020, 7:04 PM.
Referenced Files
Unknown Object (File)
Wed, Dec 4, 9:11 PM
Unknown Object (File)
Mon, Dec 2, 6:29 AM
Unknown Object (File)
Mon, Dec 2, 6:29 AM
Unknown Object (File)
Mon, Dec 2, 6:29 AM
Unknown Object (File)
Mon, Dec 2, 2:30 AM
Unknown Object (File)
Mon, Nov 25, 2:29 AM
Unknown Object (File)
Sep 22 2024, 6:12 AM
Unknown Object (File)
Sep 17 2024, 2:49 AM
Subscribers

Details

Summary

Due to the way claiming works, we need to ensure on AIM OFW machines that we don't have overlapping ranges on any step of the load.

Load boot1.elf at 0x38000 so it will not overlap with anything even if the entire PReP partition gets loaded by OFW.

Tested on an iBook G4, a PowerBook G4, a PowerMac G5, and qemu pseries. (which is currently broken without this patch due to lld chosing an absurdly high load address by default)

Test Plan
  • Install FreeBSD/powerpc on various AIM/OFW machines.
  • Check that booting into kernel off of hard drive works.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good! Applied your patch and I reach the kernel. I'm using QEMU 4.2 on POWER8 machine.

This revision is now accepted and ready to land.Apr 29 2020, 9:40 PM
This revision was automatically updated to reflect the committed changes.