-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Windows on ARM (AArch64) Support (#249)
* Conditionally include ntdll.dll * Use text relocation instead of GOT * Use FlushInstructionCache instead of clear_cache for arm64 * Load address in two stages (adrp, add) * objc_msgSend.aarch64.S add comments * Add seh directives * Move .seh_proc into slow sloop section * Comment out cfi directives * Substitute raw .seh directives with macros * Add documentation of SEH annotations * Detect CPU Architecture with preprocessor * Cleanup CMakeLists.txt Co-authored-by: David Chisnall <davidchisnall@users.noreply.github.com> * Remove line in objc_msgSend.aarch64.S Co-authored-by: David Chisnall <davidchisnall@users.noreply.github.com> * Change Test CMakeList to use ARCHITECTURE var * Use existing clear cache macro * Change _WIN64 to _WIN32 and reorder labels * Remove macro and replace _WIN64 with _WIN32 * Remove argument from non-win32 macro --------- Co-authored-by: David Chisnall <davidchisnall@users.noreply.github.com>
- Loading branch information
1 parent
d0d28b8
commit ab23f14
Showing
5 changed files
with
205 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// detect_arch.c | ||
#if defined(__aarch64__) | ||
#error aarch64 | ||
#elif defined(__arm__) | ||
#error arm | ||
#elif defined(__i386__) | ||
#error i386 | ||
#elif defined(__x86_64__) | ||
#error x86_64 | ||
#else | ||
#error unknown | ||
#endif |
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
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
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
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