Commit 75b3022a authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Fix the hardcoded selector values for ARM64.

parent 4d26d305
......@@ -249,13 +249,14 @@ NTSTATUS WINAPI RtlWow64GetThreadSelectorEntry( HANDLE handle, THREAD_DESCRIPTOR
if (RtlWow64GetThreadContext( handle, &context ))
{
/* hardcoded values */
context.SegCs = 0x23;
#ifdef __x86_64__
context.SegCs = 0x23;
__asm__( "movw %%fs,%0" : "=m" (context.SegFs) );
__asm__( "movw %%ss,%0" : "=m" (context.SegSs) );
#else
context.SegSs = 0x2b;
context.SegFs = 0x53;
context.SegCs = 0x1b;
context.SegSs = 0x23;
context.SegFs = 0x3b;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment