ntdll: Add %gs support for FreeBSD.

This commit is contained in:
Austin English 2010-05-23 21:18:17 -05:00 committed by Alexandre Julliard
parent 31d1417ca3
commit 40b3d2ed13
4 changed files with 13 additions and 1 deletions

1
configure vendored
View File

@ -5837,6 +5837,7 @@ for ac_header in \
machine/cpu.h \
machine/limits.h \
machine/soundcard.h \
machine/sysarch.h \
mntent.h \
mpg123.h \
ncurses.h \

View File

@ -422,6 +422,7 @@ AC_CHECK_HEADERS(\
machine/cpu.h \
machine/limits.h \
machine/soundcard.h \
machine/sysarch.h \
mntent.h \
mpg123.h \
ncurses.h \

View File

@ -28,10 +28,15 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_MACHINE_SYSARCH_H
# include <machine/sysarch.h>
#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
@ -2288,8 +2293,10 @@ void signal_init_thread( TEB *teb )
{
stack_t ss;
#ifdef __linux__
#if defined __linux__
arch_prctl( ARCH_SET_GS, teb );
#elif defined __FreeBSD__
amd64_set_gsbase( teb );
#else
# error Please define setting %gs for your architecture
#endif

View File

@ -461,6 +461,9 @@
/* Define to 1 if you have the <machine/soundcard.h> header file. */
#undef HAVE_MACHINE_SOUNDCARD_H
/* Define to 1 if you have the <machine/sysarch.h> header file. */
#undef HAVE_MACHINE_SYSARCH_H
/* Define to 1 if you have the <mach/machine.h> header file. */
#undef HAVE_MACH_MACHINE_H