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
7731c8e3
Commit
7731c8e3
authored
Jun 06, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Jun 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pending timer interrupts no longer deadlock DOSVM_Wait.
Restored interrupt priorities to correct values.
parent
068fa5d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
dosexe.h
dlls/winedos/dosexe.h
+2
-2
dosvm.c
dlls/winedos/dosvm.c
+6
-4
No files found.
dlls/winedos/dosexe.h
View file @
7731c8e3
...
...
@@ -75,8 +75,8 @@ typedef void (*DOSRELAY)(CONTEXT86*,void*);
typedef
void
(
WINAPI
*
RMCBPROC
)(
CONTEXT86
*
);
typedef
void
(
WINAPI
*
INTPROC
)(
CONTEXT86
*
);
#define DOS_PRIORITY_REALTIME
1
/* IRQ0 - FIXME: should be
0 */
#define DOS_PRIORITY_KEYBOARD
0
/* IRQ1 - FIXME: should be
1 */
#define DOS_PRIORITY_REALTIME
0
/* IRQ
0 */
#define DOS_PRIORITY_KEYBOARD
1
/* IRQ
1 */
#define DOS_PRIORITY_VGA 2
/* IRQ9 */
#define DOS_PRIORITY_MOUSE 5
/* IRQ12 */
#define DOS_PRIORITY_SERIAL 10
/* IRQ4 */
...
...
dlls/winedos/dosvm.c
View file @
7731c8e3
...
...
@@ -272,16 +272,18 @@ void WINAPI DOSVM_Wait( CONTEXT86 *waitctx )
{
/*
* FIXME: This does not work in protected mode DOS programs.
* FIXME: If we have pending IRQ which has 16-bit handler,
* DOSVM_SendQueuedEvents may stuck in which case application
* deadlocks. This is why keyboard events must have top
* priority (default timer IRQ handler is 16-bit code).
* FIXME: Critical section locking is broken.
*/
CONTEXT86
context
=
*
waitctx
;
IF_SET
(
&
context
);
SET_PEND
(
&
context
);
context
.
SegCs
=
0
;
context
.
Eip
=
0
;
DOSVM_SendQueuedEvents
(
&
context
);
if
(
context
.
SegCs
||
context
.
Eip
)
DPMI_CallRMProc
(
&
context
,
NULL
,
0
,
TRUE
);
}
else
{
...
...
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