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
b3878802
Commit
b3878802
authored
Dec 30, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Duplicate the necessary part of instruction emulation to avoid importing kernel.
parent
442512d5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
25 deletions
+5
-25
krnl386.exe16.spec
dlls/krnl386.exe16/krnl386.exe16.spec
+0
-3
Makefile.in
dlls/ntoskrnl.exe/Makefile.in
+2
-1
instr.c
dlls/ntoskrnl.exe/instr.c
+0
-0
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+3
-21
No files found.
dlls/krnl386.exe16/krnl386.exe16.spec
View file @
b3878802
...
...
@@ -743,9 +743,6 @@
# All functions must be prefixed with '__wine_' (for internal functions)
# or 'wine_' (for user-visible functions) to avoid namespace conflicts.
# 16-bit relays
@ cdecl -arch=win32 __wine_emulate_instruction(ptr ptr)
# VxDs
@ cdecl -arch=win32 -private __wine_vxd_open(wstr long ptr)
@ cdecl -arch=win32 -private __wine_vxd_get_proc(long)
dlls/ntoskrnl.exe/Makefile.in
View file @
b3878802
...
...
@@ -4,9 +4,10 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
ntoskrnl.exe
IMPORTLIB
=
ntoskrnl.exe
IMPORTS
=
kernel32
kernel
ntdll
IMPORTS
=
kernel32 ntdll
C_SRCS
=
\
instr.c
\
ntoskrnl.c
RC_SRCS
=
ntoskrnl.rc
...
...
dlls/ntoskrnl.exe/instr.c
0 → 100644
View file @
b3878802
This diff is collapsed.
Click to expand it.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
b3878802
...
...
@@ -40,6 +40,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ntoskrnl
);
WINE_DECLARE_DEBUG_CHANNEL
(
relay
);
extern
LONG
CALLBACK
vectored_handler
(
EXCEPTION_POINTERS
*
ptrs
);
KSYSTEM_TIME
KeTickCount
=
{
0
,
0
,
0
};
...
...
@@ -121,27 +122,6 @@ static HANDLE get_device_manager(void)
return
ret
;
}
/* exception handler for emulation of privileged instructions */
static
LONG
CALLBACK
vectored_handler
(
EXCEPTION_POINTERS
*
ptrs
)
{
EXCEPTION_RECORD
*
record
=
ptrs
->
ExceptionRecord
;
if
(
record
->
ExceptionCode
==
EXCEPTION_ACCESS_VIOLATION
||
record
->
ExceptionCode
==
EXCEPTION_PRIV_INSTRUCTION
)
{
#ifdef __i386__
CONTEXT
*
context
=
ptrs
->
ContextRecord
;
extern
DWORD
__wine_emulate_instruction
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
);
if
(
__wine_emulate_instruction
(
record
,
context
)
==
ExceptionContinueExecution
)
return
EXCEPTION_CONTINUE_EXECUTION
;
#else
FIXME
(
"Privileged instruction emulation not implemented on this CPU
\n
"
);
#endif
}
return
EXCEPTION_CONTINUE_SEARCH
;
}
/* process an ioctl request for a given device */
static
NTSTATUS
process_ioctl
(
DEVICE_OBJECT
*
device
,
ULONG
code
,
void
*
in_buff
,
ULONG
in_size
,
void
*
out_buff
,
ULONG
*
out_size
)
...
...
@@ -1399,7 +1379,9 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
inst
);
#ifdef __i386__
handler
=
RtlAddVectoredExceptionHandler
(
TRUE
,
vectored_handler
);
#endif
KeQueryTickCount
(
&
count
);
/* initialize the global KeTickCount */
break
;
case
DLL_PROCESS_DETACH
:
...
...
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