ntdll: Add missing checks for FreeBSD_kernel.
This commit is contained in:
parent
599afa06b7
commit
9832bd6c54
|
@ -1173,7 +1173,7 @@ void fill_cpu_info(void)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
{
|
{
|
||||||
int ret, num;
|
int ret, num;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
|
@ -210,6 +210,8 @@ typedef struct trapframe SIGCONTEXT;
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
|
|
||||||
|
#include <machine/trap.h>
|
||||||
|
|
||||||
typedef struct sigcontext SIGCONTEXT;
|
typedef struct sigcontext SIGCONTEXT;
|
||||||
|
|
||||||
#define EAX_sig(context) ((context)->sc_eax)
|
#define EAX_sig(context) ((context)->sc_eax)
|
||||||
|
@ -428,7 +430,7 @@ extern void DECLSPEC_NORETURN __wine_restore_regs( const CONTEXT *context );
|
||||||
enum i386_trap_code
|
enum i386_trap_code
|
||||||
{
|
{
|
||||||
TRAP_x86_UNKNOWN = -1, /* Unknown fault (TRAP_sig not defined) */
|
TRAP_x86_UNKNOWN = -1, /* Unknown fault (TRAP_sig not defined) */
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
TRAP_x86_DIVIDE = T_DIVIDE, /* Division by zero exception */
|
TRAP_x86_DIVIDE = T_DIVIDE, /* Division by zero exception */
|
||||||
TRAP_x86_TRCTRAP = T_TRCTRAP, /* Single-step exception */
|
TRAP_x86_TRCTRAP = T_TRCTRAP, /* Single-step exception */
|
||||||
TRAP_x86_NMI = T_NMI, /* NMI interrupt */
|
TRAP_x86_NMI = T_NMI, /* NMI interrupt */
|
||||||
|
|
|
@ -136,7 +136,7 @@ extern int arch_prctl(int func, void *ptr);
|
||||||
|
|
||||||
#define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.fpregs))
|
#define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.fpregs))
|
||||||
|
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
#include <sys/ucontext.h>
|
#include <sys/ucontext.h>
|
||||||
|
|
||||||
#define RAX_sig(context) ((context)->uc_mcontext.mc_rax)
|
#define RAX_sig(context) ((context)->uc_mcontext.mc_rax)
|
||||||
|
@ -2335,7 +2335,7 @@ void signal_init_thread( TEB *teb )
|
||||||
|
|
||||||
#if defined __linux__
|
#if defined __linux__
|
||||||
arch_prctl( ARCH_SET_GS, teb );
|
arch_prctl( ARCH_SET_GS, teb );
|
||||||
#elif defined __FreeBSD__
|
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
amd64_set_gsbase( teb );
|
amd64_set_gsbase( teb );
|
||||||
#else
|
#else
|
||||||
# error Please define setting %gs for your architecture
|
# error Please define setting %gs for your architecture
|
||||||
|
|
Loading…
Reference in New Issue