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
eeaafcc0
Commit
eeaafcc0
authored
Jan 03, 1999
by
Andreas Mohr
Committed by
Alexandre Julliard
Jan 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added automatic CMOS RAM checksum calculation.
parent
382e2024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
ioports.c
msdos/ioports.c
+14
-1
No files found.
msdos/ioports.c
View file @
eeaafcc0
...
...
@@ -29,7 +29,7 @@ static BYTE cmosimage[64] =
0x40
,
0xb1
,
0x00
,
0x9c
,
0x01
,
0x80
,
0x02
,
0x00
,
0x1c
,
0x00
,
0x00
,
0xad
,
0x02
,
0x10
,
0x00
,
0x00
,
0x08
,
0x00
,
0x00
,
0x26
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x3f
,
0x03
,
0x
58
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x3f
,
0x03
,
0x
19
,
0x00
,
0x1c
,
0x19
,
0x81
,
0x00
,
0x0e
,
0x00
,
0x80
,
0x1b
,
0x7b
,
0x21
,
0x00
,
0x00
,
0x00
,
0x05
,
0x5f
};
...
...
@@ -52,6 +52,18 @@ static char port_permissions[0x10000];
#endif
/* DIRECT_IO_ACCESS */
static
void
IO_FixCMOSCheckSum
()
{
WORD
sum
=
0
;
int
i
;
for
(
i
=
0x10
;
i
<
0x2d
;
i
++
)
sum
+=
cmosimage
[
i
];
cmosimage
[
0x2e
]
=
sum
>>
8
;
/* yes, this IS hi byte !! */
cmosimage
[
0x2f
]
=
sum
&
0xff
;
TRACE
(
int
,
"calculated hi %02x, lo %02x
\n
"
,
cmosimage
[
0x2e
],
cmosimage
[
0x2f
]);
}
/**********************************************************************
* IO_port_init
*/
...
...
@@ -188,6 +200,7 @@ void IO_port_init()
do_IO_port_init_read_or_write
(
temp
,
IO_WRITE
);
}
#endif
/* DIRECT_IO_ACCESS */
IO_FixCMOSCheckSum
();
}
...
...
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