Page MenuHomeFreeBSD

arm64 linuxulator: arm64 linux64 sysvec
ClosedPublic

Authored by emaste on Jun 15 2018, 8:39 PM.
Tags
None
Referenced Files
F135256092: D15834.id.diff
Sat, Nov 8, 1:02 AM
F135228677: D15834.id.diff
Fri, Nov 7, 6:23 PM
F135223874: D15834.id44041.diff
Fri, Nov 7, 5:03 PM
F135189603: D15834.id43849.diff
Fri, Nov 7, 7:56 AM
F135179352: D15834.diff
Fri, Nov 7, 5:17 AM
F135177728: D15834.id43849.diff
Fri, Nov 7, 4:55 AM
Unknown Object (File)
Fri, Nov 7, 4:21 AM
Unknown Object (File)
Tue, Nov 4, 7:56 PM

Details

Summary

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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

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

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.