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
0a1fa89f
Commit
0a1fa89f
authored
Sep 01, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Sep 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for specific EOI PIC command.
parent
dad477ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
25 deletions
+42
-25
dosvm.c
dlls/winedos/dosvm.c
+42
-25
No files found.
dlls/winedos/dosvm.c
View file @
0a1fa89f
...
...
@@ -599,31 +599,48 @@ int WINAPI DOSVM_Enter( CONTEXT86 *context )
*/
void
WINAPI
DOSVM_PIC_ioport_out
(
WORD
port
,
BYTE
val
)
{
LPDOSEVENT
event
;
if
((
port
==
0x20
)
&&
(
val
==
0x20
))
{
EnterCriticalSection
(
&
qcrit
);
if
(
current_event
)
{
/* EOI (End Of Interrupt) */
TRACE
(
"received EOI for current IRQ, clearing
\n
"
);
event
=
current_event
;
current_event
=
event
->
next
;
if
(
event
->
relay
)
(
*
event
->
relay
)(
NULL
,
event
->
data
);
free
(
event
);
if
(
DOSVM_HasPendingEvents
())
{
/* another event is pending, which we should probably
* be able to process now */
TRACE
(
"another event pending, setting flag
\n
"
);
NtCurrentTeb
()
->
vm86_pending
|=
VIP_MASK
;
}
}
else
{
WARN
(
"EOI without active IRQ
\n
"
);
}
LeaveCriticalSection
(
&
qcrit
);
}
else
{
FIXME
(
"unrecognized PIC command %02x
\n
"
,
val
);
if
(
port
!=
0x20
)
{
FIXME
(
"Unsupported PIC port %04x
\n
"
,
port
);
}
else
if
(
val
==
0x20
||
(
val
>=
0x60
&&
val
<=
0x67
))
{
EnterCriticalSection
(
&
qcrit
);
if
(
!
current_event
)
{
WARN
(
"%s without active IRQ
\n
"
,
val
==
0x20
?
"EOI"
:
"Specific EOI"
);
}
else
if
(
val
!=
0x20
&&
val
-
0x60
!=
current_event
->
irq
)
{
WARN
(
"Specific EOI but current IRQ %d is not %d
\n
"
,
current_event
->
irq
,
val
-
0x60
);
}
else
{
LPDOSEVENT
event
=
current_event
;
TRACE
(
"Received %s for current IRQ %d, clearing event
\n
"
,
val
==
0x20
?
"EOI"
:
"Specific EOI"
,
event
->
irq
);
current_event
=
event
->
next
;
if
(
event
->
relay
)
(
*
event
->
relay
)(
NULL
,
event
->
data
);
free
(
event
);
if
(
DOSVM_HasPendingEvents
())
{
TRACE
(
"Another event pending, setting pending flag
\n
"
);
NtCurrentTeb
()
->
vm86_pending
|=
VIP_MASK
;
}
}
LeaveCriticalSection
(
&
qcrit
);
}
else
{
FIXME
(
"Unrecognized PIC command %02x
\n
"
,
val
);
}
}
...
...
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