Added ARM64 to the CPU-specific Windows testing code.
This commit is contained in:
parent
2282ee2cf8
commit
05af10aade
|
@ -90,12 +90,13 @@ static void setContextForSet(CONTEXT *ctx)
|
||||||
ctx->Rip = (DWORD64) onTimeout;
|
ctx->Rip = (DWORD64) onTimeout;
|
||||||
#elif defined(_ARM_)
|
#elif defined(_ARM_)
|
||||||
ctx->Pc = (DWORD) onTimeout;
|
ctx->Pc = (DWORD) onTimeout;
|
||||||
|
#elif defined(_ARM64_)
|
||||||
|
ctx->Pc = (DWORD64) onTimeout;
|
||||||
#elif defined(_X86_)
|
#elif defined(_X86_)
|
||||||
ctx->Eip = (DWORD) onTimeout;
|
ctx->Eip = (DWORD) onTimeout;
|
||||||
#elif defined(_IA64_)
|
#elif defined(_IA64_)
|
||||||
// TODO verify that this is correct
|
// TODO verify that this is correct
|
||||||
ctx->StIIP = (ULONGLONG) onTimeout;
|
ctx->StIIP = (ULONGLONG) onTimeout;
|
||||||
// TODO arm64 (I need to get the headers for this)
|
|
||||||
#else
|
#else
|
||||||
#error unknown CPU architecture; cannot create CONTEXT objects for CPU-specific Windows test code
|
#error unknown CPU architecture; cannot create CONTEXT objects for CPU-specific Windows test code
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue