1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

MacOSX: First native Apple M1 support

This commit is contained in:
Mounir IDRASSI
2021-08-15 00:51:06 +02:00
parent 33baca7261
commit 8ae5a715d6
7 changed files with 33 additions and 20 deletions

View File

@@ -56,9 +56,13 @@ namespace VeraCrypt
#elif defined (TC_MACOSX)
# ifdef __x86_64__
faultingInstructionAddress = context->uc_mcontext->__ss.__rip;
# else
# ifdef __aarch64__
faultingInstructionAddress = context->uc_mcontext->__ss.__pc;
# else
faultingInstructionAddress = context->uc_mcontext->__ss.__eip;
# endif
# endif
#endif
wstringstream vars;