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
0a116b8b
Commit
0a116b8b
authored
Jul 28, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Jul 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just get DOS task structure from MZ_Current(), instead of (clumsily)
trying to find and read from the current task's module structures.
parent
3939b6d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
39 deletions
+12
-39
int21.c
msdos/int21.c
+6
-16
int2f.c
msdos/int2f.c
+6
-23
No files found.
msdos/int21.c
View file @
0a116b8b
...
...
@@ -947,29 +947,19 @@ INT21_networkfunc (CONTEXT86 *context)
static
void
INT21_SetCurrentPSP
(
WORD
psp
)
{
#ifdef MZ_SUPPORTED
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
GlobalUnlock16
(
GetCurrentTask
()
);
if
(
pModule
->
lpDosTask
)
pModule
->
lpDosTask
->
psp_seg
=
psp
;
LPDOSTASK
lpDosTask
=
MZ_Current
();
if
(
lpDosTask
)
lpDosTask
->
psp_seg
=
psp
;
else
#endif
ERR
(
"Cannot change PSP for non-DOS task!
\n
"
);
}
static
WORD
INT21_GetCurrentPSP
()
{
#ifdef MZ_SUPPORTED
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
GlobalUnlock16
(
GetCurrentTask
()
);
if
(
pModule
->
lpDosTask
)
return
pModule
->
lpDosTask
->
psp_seg
;
LPDOSTASK
lpDosTask
=
MZ_Current
();
if
(
lpDosTask
)
return
lpDosTask
->
psp_seg
;
else
#endif
return
GetCurrentPDB16
();
}
...
...
msdos/int2f.c
View file @
0a116b8b
...
...
@@ -114,16 +114,9 @@ void WINAPI INT_Int2fHandler( CONTEXT86 *context )
break
;
case
0x10
:
/* XMS v2+ get driver address */
{
#ifdef MZ_SUPPORTED
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
GlobalUnlock16
(
GetCurrentTask
()
);
if
(
pModule
&&
pModule
->
lpDosTask
)
ES_reg
(
context
)
=
pModule
->
lpDosTask
->
xms_seg
;
else
#endif
ES_reg
(
context
)
=
0
;
LPDOSTASK
lpDosTask
=
MZ_Current
();
ES_reg
(
context
)
=
lpDosTask
?
lpDosTask
->
xms_seg
:
0
;
BX_reg
(
context
)
=
0
;
break
;
}
...
...
@@ -355,12 +348,7 @@ static void do_int2f_16( CONTEXT86 *context )
#endif
{
SYSTEM_INFO
si
;
#ifdef MZ_SUPPORTED
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
GlobalUnlock16
(
GetCurrentTask
()
);
#endif
LPDOSTASK
lpDosTask
=
MZ_Current
();
GetSystemInfo
(
&
si
);
AX_reg
(
context
)
=
0x0000
;
/* DPMI Installed */
...
...
@@ -368,13 +356,8 @@ static void do_int2f_16( CONTEXT86 *context )
CL_reg
(
context
)
=
si
.
wProcessorLevel
;
DX_reg
(
context
)
=
0x005a
;
/* DPMI major/minor 0.90 */
SI_reg
(
context
)
=
0
;
/* # of para. of DOS extended private data */
#ifdef MZ_SUPPORTED
/* ES:DI is DPMI switch entry point */
if
(
pModule
&&
pModule
->
lpDosTask
)
ES_reg
(
context
)
=
pModule
->
lpDosTask
->
dpmi_seg
;
else
#endif
ES_reg
(
context
)
=
0
;
DI_reg
(
context
)
=
0
;
ES_reg
(
context
)
=
lpDosTask
?
lpDosTask
->
dpmi_seg
:
0
;
DI_reg
(
context
)
=
0
;
/* ES:DI is DPMI switch entry point */
break
;
}
case
0x8a
:
/* DPMI get vendor-specific API entry point. */
...
...
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