-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
tools/generate_linux_syscalls.zig
could be cleaned up to be table-driven
#20801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I ll give this a go |
@ippsav thank you! Can you base your work on the version of the script in my |
@alexrp lemme know what you think about this and if there is any changes you would like to add It is based on the changes you've added. Though i need to spin up a linux vm to test it's behavior compared to the old one, or can i just do it directly from a mac ? |
This looks like a good direction to me so far. You should be able to run it on macOS provided you have a clone of the Linux 6.7 tree to point it to. |
@alexrp I've pushed some changes, tested it, works properly. The only issue is with |
Thanks ! |
As I'm adding more architectures to this, it's starting to become a bit much to just copy/paste all the code for the old syscall table approach and the new C preprocessor approach.
If anyone feels like it, it should be fairly easy to clean this tool up to be table-driven, with only a few lines of special-casing for some architectures.
The text was updated successfully, but these errors were encountered: