ntdll: Add %gs support for NetBSD.

This commit is contained in:
Akihiro Sagawa 2014-04-14 00:08:31 +09:00 committed by Alexandre Julliard
parent e9aae93a6b
commit e67f84122d
1 changed files with 2 additions and 0 deletions

View File

@ -2519,6 +2519,8 @@ void signal_init_thread( TEB *teb )
arch_prctl( ARCH_SET_GS, teb );
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
amd64_set_gsbase( teb );
#elif defined(__NetBSD__)
sysarch( X86_64_SET_GSBASE, &teb );
#else
# error Please define setting %gs for your architecture
#endif