ntdll: Add %gs support for FreeBSD.
This commit is contained in:
parent
31d1417ca3
commit
40b3d2ed13
|
@ -5837,6 +5837,7 @@ for ac_header in \
|
||||||
machine/cpu.h \
|
machine/cpu.h \
|
||||||
machine/limits.h \
|
machine/limits.h \
|
||||||
machine/soundcard.h \
|
machine/soundcard.h \
|
||||||
|
machine/sysarch.h \
|
||||||
mntent.h \
|
mntent.h \
|
||||||
mpg123.h \
|
mpg123.h \
|
||||||
ncurses.h \
|
ncurses.h \
|
||||||
|
|
|
@ -422,6 +422,7 @@ AC_CHECK_HEADERS(\
|
||||||
machine/cpu.h \
|
machine/cpu.h \
|
||||||
machine/limits.h \
|
machine/limits.h \
|
||||||
machine/soundcard.h \
|
machine/soundcard.h \
|
||||||
|
machine/sysarch.h \
|
||||||
mntent.h \
|
mntent.h \
|
||||||
mpg123.h \
|
mpg123.h \
|
||||||
ncurses.h \
|
ncurses.h \
|
||||||
|
|
|
@ -28,10 +28,15 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_MACHINE_SYSARCH_H
|
||||||
|
# include <machine/sysarch.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -2288,8 +2293,10 @@ void signal_init_thread( TEB *teb )
|
||||||
{
|
{
|
||||||
stack_t ss;
|
stack_t ss;
|
||||||
|
|
||||||
#ifdef __linux__
|
#if defined __linux__
|
||||||
arch_prctl( ARCH_SET_GS, teb );
|
arch_prctl( ARCH_SET_GS, teb );
|
||||||
|
#elif defined __FreeBSD__
|
||||||
|
amd64_set_gsbase( teb );
|
||||||
#else
|
#else
|
||||||
# error Please define setting %gs for your architecture
|
# error Please define setting %gs for your architecture
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -461,6 +461,9 @@
|
||||||
/* Define to 1 if you have the <machine/soundcard.h> header file. */
|
/* Define to 1 if you have the <machine/soundcard.h> header file. */
|
||||||
#undef HAVE_MACHINE_SOUNDCARD_H
|
#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. */
|
/* Define to 1 if you have the <mach/machine.h> header file. */
|
||||||
#undef HAVE_MACH_MACHINE_H
|
#undef HAVE_MACH_MACHINE_H
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue