-
Notifications
You must be signed in to change notification settings - Fork 5
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
Implement ARM64 Support #7
Draft
CuriousTommy
wants to merge
43
commits into
main
Choose a base branch
from
feature/arm-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* `__NR_getpgrp` & `__NR_epoll_create` don't exist on ARM64. However, `epoll_create1(0)` & `getpgid(0)` can be used as a substitute. * While `__NR_getpgrp` & `__NR_epoll_create` exist on x86, I want to try and keep the code consistent between ARM64 and x86.
…ror If Code Is Missing For Arch.
Unlike i386/x86_64, ARM64 doesn't contain a `stat64` struct. On top of that, ARM64's `stat` is actually the same as `stat64`. As a result, some of the stat code will need to be converted to handle this scenario. For more details, I recommend looking at the `[xnu]/bsd/sys/stat.h` file.
Unless Linux has a way for us to update the TPIDRRO_EL0, we will have to use TPIDR_EL0 instead...
The syscall number is suppose to be set at x8, not x7.
The way variadic functions are handled on macOS differs between x86/x86-64 and ARM64. See the following for more details: https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code#Dont-Redeclare-a-Function-to-Have-Variable-Parameters
CuriousTommy
force-pushed
the
feature/arm-support
branch
from
January 22, 2024 04:53
f9749bf
to
d786856
Compare
…TPIDR_EL0 Linux relies on TPIDR_EL0, so we can't use that.
* If not already done, add code to save and restore `fp` & `lr`. * Update code that wasn't changed to call `__darling_handle_svc` * Rework changes made to the macros.
Based off of how we handle the carry flag for x86.
CuriousTommy
force-pushed
the
feature/arm-support
branch
from
February 12, 2024 02:18
e0f411c
to
59096eb
Compare
Also throw error if `linux_stat` is missing for arch.
…ns Needed To Get Syscall Function.
If you look at <bits/fcntl-linux.h>, you'll notice that some constants will only be defined if they have not already been defined. This is important for some architextures (such as ARM64, which have custom implementations for some of the constants)
Forgot to fix this code as well when fixing the TPIDR_EL0 issue
CuriousTommy
force-pushed
the
feature/arm-support
branch
from
June 15, 2024 18:26
a48bb97
to
91d7d50
Compare
CuriousTommy
force-pushed
the
feature/arm-support
branch
from
June 21, 2024 02:39
ad51599
to
989284d
Compare
Fixes ___pipe implementation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.