ntdll: Add %gs support for NetBSD.
This commit is contained in:
parent
e9aae93a6b
commit
e67f84122d
|
@ -2519,6 +2519,8 @@ void signal_init_thread( TEB *teb )
|
||||||
arch_prctl( ARCH_SET_GS, teb );
|
arch_prctl( ARCH_SET_GS, teb );
|
||||||
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
amd64_set_gsbase( teb );
|
amd64_set_gsbase( teb );
|
||||||
|
#elif defined(__NetBSD__)
|
||||||
|
sysarch( X86_64_SET_GSBASE, &teb );
|
||||||
#else
|
#else
|
||||||
# error Please define setting %gs for your architecture
|
# error Please define setting %gs for your architecture
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue