Commit 95fe8e5d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Check for AT_HWCAP2 definition before using it.

parent 90d975ac
......@@ -2429,7 +2429,9 @@ void signal_init_process(void)
{
amd64_thread_data()->fs = fs32_sel = (sel << 3) | 3;
syscall_flags |= SYSCALL_HAVE_PTHREAD_TEB;
#ifdef AT_HWCAP2
if (getauxval( AT_HWCAP2 ) & 2) syscall_flags |= SYSCALL_HAVE_WRFSGSBASE;
#endif
}
else ERR_(seh)( "failed to allocate %%fs selector\n" );
}
......
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