Page MenuHomeFreeBSD

arm64 linuxulator: arm64 linux64 sysvec
ClosedPublic

Authored by emaste on Jun 15 2018, 8:39 PM.
Tags
None
Referenced Files
F132357819: D15834.id43849.diff
Thu, Oct 16, 5:10 AM
Unknown Object (File)
Wed, Oct 15, 1:10 AM
Unknown Object (File)
Thu, Oct 9, 9:32 PM
Unknown Object (File)
Sat, Sep 27, 2:40 AM
Unknown Object (File)
Sun, Sep 21, 6:53 PM
Unknown Object (File)
Wed, Sep 17, 2:33 AM
Unknown Object (File)
Sep 13 2025, 5:16 PM
Unknown Object (File)
Aug 13 2025, 10:19 PM

Details

Summary

Combined with D15832 this provides a minimal arm64 linuxulator implementation capable of executing Linux 'hello world' binaries

Diff Detail

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

Event Timeline

emaste added a subscriber: chuck.

Minor tidyup

This revision is now accepted and ready to land.Jun 19 2018, 8:10 AM
sys/arm64/linux/linux_sysvec.c
138 ↗(On Diff #44041)

I think you can extract the needed buts from cpu_fetch_syscall_args. We need to memcpy the args, set the code from x8, then set callp as in amd64.

148 ↗(On Diff #44041)

We need to update cpu_set_syscall_retval to us SV_ABI_ERRNO in the default case to translate Linux errno values.

This revision was automatically updated to reflect the committed changes.