Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
23fbf4a9
Commit
23fbf4a9
authored
Aug 15, 2001
by
Uwe Bonnes
Committed by
Alexandre Julliard
Aug 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't call Dosvm functions when Dosvm isn't initialized.
parent
fb964369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
ioports.c
msdos/ioports.c
+12
-4
No files found.
msdos/ioports.c
View file @
23fbf4a9
...
...
@@ -98,7 +98,8 @@ static void set_timer_maxval(unsigned timer, unsigned maxval)
{
switch
(
timer
)
{
case
0
:
/* System timer counter divisor */
Dosvm
.
SetTimer
(
maxval
);
if
(
Dosvm
.
Current
())
Dosvm
.
SetTimer
(
maxval
);
break
;
case
1
:
/* RAM refresh */
FIXME
(
"RAM refresh counter handling not implemented !
\n
"
);
...
...
@@ -307,7 +308,10 @@ DWORD IO_inport( int port, int size )
if
(
chan
==
0
)
/* System timer counter divisor */
{
/* FIXME: Dosvm.GetTimer() returns quite rigid values */
tempval
=
dummy_ctr
+
(
WORD
)
Dosvm
.
GetTimer
();
if
(
Dosvm
.
Current
())
tempval
=
dummy_ctr
+
(
WORD
)
Dosvm
.
GetTimer
();
else
tempval
=
dummy_ctr
;
}
else
{
...
...
@@ -415,7 +419,8 @@ void IO_outport( int port, int size, DWORD value )
switch
(
port
)
{
case
0x20
:
Dosvm
.
OutPIC
(
port
,
(
BYTE
)
value
);
if
(
Dosvm
.
Current
())
Dosvm
.
OutPIC
(
port
,
(
BYTE
)
value
);
break
;
case
0x40
:
case
0x41
:
...
...
@@ -472,7 +477,10 @@ void IO_outport( int port, int size, DWORD value )
tmr_8253
[
chan
].
latched
=
TRUE
;
dummy_ctr
-=
1
+
(
int
)(
10
.
0
*
rand
()
/
(
RAND_MAX
+
1
.
0
));
if
(
chan
==
0
)
/* System timer divisor */
tmr_8253
[
chan
].
latch
=
dummy_ctr
+
(
WORD
)
Dosvm
.
GetTimer
();
if
(
Dosvm
.
Current
())
tmr_8253
[
chan
].
latch
=
dummy_ctr
+
(
WORD
)
Dosvm
.
GetTimer
();
else
tmr_8253
[
chan
].
latch
=
dummy_ctr
;
else
{
/* FIXME: intelligent hardware timer emulation needed */
...
...
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