Page MenuHomeFreeBSD

Fix thread creation in PowerPC64 ELFv2 processes.
ClosedPublic

Authored by git_bdragon.rtk0.net on Nov 25 2018, 9:18 AM.

Details

Summary

Currently, the upcall used to create threads assumes ELFv1.

Instead, we should check which sysentvec is in use on the process and act accordingly.

This makes ELFv2 threaded processes work.

Diff Detail

Repository
rS 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

git_bdragon.rtk0.net edited the summary of this revision. (Show Details)

Fix ABI violation that was causing crash on thread exit.

jhibbits accepted this revision.Nov 27 2018, 4:20 AM

LGTM.

This revision is now accepted and ready to land.Nov 27 2018, 4:20 AM
This revision was automatically updated to reflect the committed changes.