Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
0a1fa89f
Commit
0a1fa89f
authored
21 years ago
by
Jukka Heinonen
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add support for specific EOI PIC command.
parent
dad477ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winedos/dosvm.c
+42
-25
42 additions, 25 deletions
dlls/winedos/dosvm.c
with
42 additions
and
25 deletions
dlls/winedos/dosvm.c
+
42
−
25
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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment