Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9832bd6c
Commit
9832bd6c
authored
Jan 15, 2011
by
Austin English
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add missing checks for FreeBSD_kernel.
parent
599afa06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
nt.c
dlls/ntdll/nt.c
+1
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+3
-1
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+2
-2
No files found.
dlls/ntdll/nt.c
View file @
9832bd6c
...
...
@@ -1173,7 +1173,7 @@ void fill_cpu_info(void)
fclose
(
f
);
}
}
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__)
|| defined (__FreeBSD_kernel__)
{
int
ret
,
num
;
size_t
len
;
...
...
dlls/ntdll/signal_i386.c
View file @
9832bd6c
...
...
@@ -210,6 +210,8 @@ typedef struct trapframe SIGCONTEXT;
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <machine/trap.h>
typedef
struct
sigcontext
SIGCONTEXT
;
#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
{
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_TRCTRAP
=
T_TRCTRAP
,
/* Single-step exception */
TRAP_x86_NMI
=
T_NMI
,
/* NMI interrupt */
...
...
dlls/ntdll/signal_x86_64.c
View file @
9832bd6c
...
...
@@ -136,7 +136,7 @@ extern int arch_prctl(int func, void *ptr);
#define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.fpregs))
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__)
|| defined (__FreeBSD_kernel__)
#include <sys/ucontext.h>
#define RAX_sig(context) ((context)->uc_mcontext.mc_rax)
...
...
@@ -2335,7 +2335,7 @@ void signal_init_thread( TEB *teb )
#if defined __linux__
arch_prctl
(
ARCH_SET_GS
,
teb
);
#elif defined
__FreeBSD__
#elif defined
(__FreeBSD__) || defined (__FreeBSD_kernel__)
amd64_set_gsbase
(
teb
);
#else
# error Please define setting %gs for your architecture
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment