Page MenuHomeFreeBSD

linuxulator: do not include legacy syscalls on arm64
ClosedPublic

Authored by emaste on Apr 30 2018, 12:51 PM.
Tags
None
Referenced Files
F150405914: D15237.id41997.diff
Tue, Mar 31, 10:59 PM
Unknown Object (File)
Sun, Mar 29, 1:53 AM
Unknown Object (File)
Fri, Mar 20, 1:45 PM
Unknown Object (File)
Fri, Mar 20, 7:41 AM
Unknown Object (File)
Thu, Mar 19, 10:17 PM
Unknown Object (File)
Feb 16 2026, 12:31 PM
Unknown Object (File)
Jan 15 2026, 12:20 PM
Unknown Object (File)
Dec 26 2025, 11:41 AM
Subscribers

Details

Summary

Existing linuxulator platforms (i386, amd64) support legacy syscalls, such as non-*at ones like open, but arm64 and other new platforms do not.

Wrap these in #ifdef LINUX_LEGACY_SYSCALLS, #defined in the MD linux.h files. We may need finer grained control in the future but this is sufficient for now.

Diff Detail

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

Event Timeline

emaste added inline comments.
sys/compat/linux/linux_stats.c
84–99 ↗(On Diff #41997)

will add #ifdef LINUX_LEGACY_SYSCALLS around these static fns too

How will this work if we decide to add linux32 on arm64? I expect we will need to implement the legacy syscalls there.

How will this work if we decide to add linux32 on arm64? I expect we will need to implement the legacy syscalls there.

Looks like the syscall files are compiled separately into linux.ko and linux64.ko so we can just #define LINUX_LEGACY_SYSCALLS for 32-bit arm.

This revision is now accepted and ready to land.Jun 15 2018, 2:03 PM
This revision was automatically updated to reflect the committed changes.