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
6a216d0e
Commit
6a216d0e
authored
Nov 04, 2002
by
Jukka Heinonen
Committed by
Alexandre Julliard
Nov 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When returning from 32-bit default interrupt handlers, eflags are now
returned correctly.
parent
52b93b6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
interrupts.c
dlls/winedos/interrupts.c
+1
-1
dosmem.c
msdos/dosmem.c
+11
-9
No files found.
dlls/winedos/interrupts.c
View file @
6a216d0e
...
...
@@ -232,7 +232,7 @@ FARPROC48 DOSVM_GetPMHandler48( BYTE intnum )
if
(
!
DOSVM_Vectors48
[
intnum
].
selector
)
{
DOSVM_Vectors48
[
intnum
].
selector
=
DOSVM_dpmi_segments
->
int48_sel
;
DOSVM_Vectors48
[
intnum
].
offset
=
4
*
intnum
;
DOSVM_Vectors48
[
intnum
].
offset
=
6
*
intnum
;
}
return
DOSVM_Vectors48
[
intnum
];
}
...
...
msdos/dosmem.c
View file @
6a216d0e
...
...
@@ -212,19 +212,21 @@ static void DOSMEM_InitDPMI(void)
memcpy
(
ptr
,
enter_pm
,
sizeof
(
enter_pm
)
);
DOSMEM_dpmi_segments
.
dpmi_sel
=
SELECTOR_AllocBlock
(
ptr
,
sizeof
(
enter_pm
),
WINE_LDT_FLAGS_CODE
);
ptr
=
DOSMEM_GetBlock
(
4
*
256
,
&
DOSMEM_dpmi_segments
.
int48_seg
);
ptr
=
DOSMEM_GetBlock
(
6
*
256
,
&
DOSMEM_dpmi_segments
.
int48_seg
);
for
(
i
=
0
;
i
<
256
;
i
++
)
{
/*
* Each 32-bit interrupt handler is
4
bytes:
* 0xCD,<i> = int <i> (nested 16-bit interrupt)
* 0x66,0xC
F = iretd (32-bit interrupt return
)
* Each 32-bit interrupt handler is
6
bytes:
* 0xCD,<i>
= int <i> (nested 16-bit interrupt)
* 0x66,0xC
A,0x04,0x00 = ret 4 (32-bit far return and pop 4 bytes
)
*/
ptr
[
i
*
4
+
0
]
=
0xCD
;
ptr
[
i
*
4
+
1
]
=
i
;
ptr
[
i
*
4
+
2
]
=
0x66
;
ptr
[
i
*
4
+
3
]
=
0xCF
;
ptr
[
i
*
6
+
0
]
=
0xCD
;
ptr
[
i
*
6
+
1
]
=
i
;
ptr
[
i
*
6
+
2
]
=
0x66
;
ptr
[
i
*
6
+
3
]
=
0xCA
;
ptr
[
i
*
6
+
4
]
=
0x04
;
ptr
[
i
*
6
+
5
]
=
0x00
;
}
DOSMEM_dpmi_segments
.
int48_sel
=
SELECTOR_AllocBlock
(
ptr
,
4
*
256
,
WINE_LDT_FLAGS_CODE
);
DOSMEM_dpmi_segments
.
int48_sel
=
SELECTOR_AllocBlock
(
ptr
,
6
*
256
,
WINE_LDT_FLAGS_CODE
);
}
static
BIOSDATA
*
DOSMEM_BiosData
(
void
)
...
...
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