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
eec602fe
Commit
eec602fe
authored
Mar 17, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Mar 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386.exe16: Fix mask values.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a2eb5999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
dma.c
dlls/krnl386.exe16/dma.c
+14
-14
No files found.
dlls/krnl386.exe16/dma.c
View file @
eec602fe
...
@@ -201,22 +201,22 @@ void DMA_ioport_out( WORD port, BYTE val )
...
@@ -201,22 +201,22 @@ void DMA_ioport_out( WORD port, BYTE val )
break
;
break
;
/* Low Page Base Address */
/* Low Page Base Address */
case
0x87
:
DMA_BaseAddress
[
0
]
=
(
DMA_BaseAddress
[
0
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x87
:
DMA_BaseAddress
[
0
]
=
(
DMA_BaseAddress
[
0
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x83
:
DMA_BaseAddress
[
1
]
=
(
DMA_BaseAddress
[
1
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x83
:
DMA_BaseAddress
[
1
]
=
(
DMA_BaseAddress
[
1
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x81
:
DMA_BaseAddress
[
2
]
=
(
DMA_BaseAddress
[
2
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x81
:
DMA_BaseAddress
[
2
]
=
(
DMA_BaseAddress
[
2
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x82
:
DMA_BaseAddress
[
3
]
=
(
DMA_BaseAddress
[
3
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x82
:
DMA_BaseAddress
[
3
]
=
(
DMA_BaseAddress
[
3
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x8B
:
DMA_BaseAddress
[
5
]
=
(
DMA_BaseAddress
[
5
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x8B
:
DMA_BaseAddress
[
5
]
=
(
DMA_BaseAddress
[
5
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x89
:
DMA_BaseAddress
[
6
]
=
(
DMA_BaseAddress
[
6
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x89
:
DMA_BaseAddress
[
6
]
=
(
DMA_BaseAddress
[
6
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x8A
:
DMA_BaseAddress
[
7
]
=
(
DMA_BaseAddress
[
7
]
&
(
~
0xFF
<<
16
)
)
|
((
val
&
0xFF
)
<<
16
);
break
;
case
0x8A
:
DMA_BaseAddress
[
7
]
=
(
DMA_BaseAddress
[
7
]
&
0xFF00FFFF
)
|
((
val
&
0xFF
)
<<
16
);
break
;
/* Low Page Base Address (only 4 lower bits are significant) */
/* Low Page Base Address (only 4 lower bits are significant) */
case
0x487
:
DMA_BaseAddress
[
0
]
=
(
DMA_BaseAddress
[
0
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x487
:
DMA_BaseAddress
[
0
]
=
(
DMA_BaseAddress
[
0
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x483
:
DMA_BaseAddress
[
1
]
=
(
DMA_BaseAddress
[
1
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x483
:
DMA_BaseAddress
[
1
]
=
(
DMA_BaseAddress
[
1
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x481
:
DMA_BaseAddress
[
2
]
=
(
DMA_BaseAddress
[
2
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x481
:
DMA_BaseAddress
[
2
]
=
(
DMA_BaseAddress
[
2
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x482
:
DMA_BaseAddress
[
3
]
=
(
DMA_BaseAddress
[
3
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x482
:
DMA_BaseAddress
[
3
]
=
(
DMA_BaseAddress
[
3
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x48B
:
DMA_BaseAddress
[
5
]
=
(
DMA_BaseAddress
[
5
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x48B
:
DMA_BaseAddress
[
5
]
=
(
DMA_BaseAddress
[
5
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x489
:
DMA_BaseAddress
[
6
]
=
(
DMA_BaseAddress
[
6
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x489
:
DMA_BaseAddress
[
6
]
=
(
DMA_BaseAddress
[
6
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x48A
:
DMA_BaseAddress
[
7
]
=
(
DMA_BaseAddress
[
7
]
&
(
~
0xFFu
<<
24
)
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x48A
:
DMA_BaseAddress
[
7
]
=
(
DMA_BaseAddress
[
7
]
&
0x00FFFFFF
)
|
((
val
&
0x0F
)
<<
24
);
break
;
case
0x08
:
case
0x08
:
case
0xD0
:
case
0xD0
:
...
...
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