Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
3c9d9182
Commit
3c9d9182
authored
22 years ago
by
Jukka Heinonen
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Ignore VCPI installation checks. Handle XMS query any extended memory
function. Add stubs for get/set exception handler vector.
parent
6a216d0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/winedos/int31.c
+28
-1
28 additions, 1 deletion
dlls/winedos/int31.c
dlls/winedos/int67.c
+15
-0
15 additions, 0 deletions
dlls/winedos/int67.c
dlls/winedos/xms.c
+18
-0
18 additions, 0 deletions
dlls/winedos/xms.c
with
61 additions
and
1 deletion
dlls/winedos/int31.c
+
28
−
1
View file @
3c9d9182
...
...
@@ -438,7 +438,8 @@ static void StartPM( CONTEXT86 *context )
pm_ctx
.
SegFs
=
0
;
pm_ctx
.
SegGs
=
0
;
TRACE
(
"DOS program is now entering protected mode
\n
"
);
TRACE
(
"DOS program is now entering %d-bit protected mode
\n
"
,
DOSVM_IsDos32
()
?
32
:
16
);
wine_call_to_16_regs_short
(
&
pm_ctx
,
0
);
/* in the current state of affairs, we won't ever actually return here... */
...
...
@@ -677,6 +678,32 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
RESET_CFLAG
(
context
);
switch
(
AX_reg
(
context
))
{
case
0x0008
:
/* Set selector limit */
{
DWORD
limit
=
MAKELONG
(
DX_reg
(
context
),
CX_reg
(
context
)
);
TRACE
(
"set selector limit (0x%04x,0x%08lx)
\n
"
,
BX_reg
(
context
),
limit
);
SetSelectorLimit16
(
BX_reg
(
context
),
limit
);
}
break
;
case
0x0202
:
/* Get Processor Exception Handler Vector */
FIXME
(
"Get Processor Exception Handler Vector (0x%02x)
\n
"
,
BL_reg
(
context
)
);
if
(
DOSVM_IsDos32
())
{
SET_CX
(
context
,
0
);
context
->
Edx
=
0
;
}
else
{
SET_CX
(
context
,
0
);
SET_DX
(
context
,
0
);
}
break
;
case
0x0203
:
/* Set Processor Exception Handler Vector */
FIXME
(
"Set Processor Exception Handler Vector (0x%02x)
\n
"
,
BL_reg
(
context
)
);
break
;
case
0x0204
:
/* Get protected mode interrupt vector */
TRACE
(
"get protected mode interrupt handler (0x%02x)
\n
"
,
BL_reg
(
context
));
...
...
This diff is collapsed.
Click to expand it.
dlls/winedos/int67.c
+
15
−
0
View file @
3c9d9182
...
...
@@ -436,6 +436,21 @@ void WINAPI DOSVM_Int67Handler( CONTEXT86 *context )
case
0x5b
:
/* EMS 4.0 - ALTERNATE MAP REGISTER SET */
case
0x5c
:
/* EMS 4.0 - PREPARE EXPANDED MEMORY HARDWARE FOR WARM BOOT */
case
0x5d
:
/* EMS 4.0 - ENABLE/DISABLE OS FUNCTION SET FUNCTIONS */
INT_BARF
(
context
,
0x67
);
break
;
case
0xde
:
/* Virtual Control Program Interface (VCPI) */
if
(
AL_reg
(
context
)
==
0x00
)
{
/*
* VCPI INSTALLATION CHECK
* (AH_reg() != 0) means VCPI is not present
*/
TRACE
(
"- VCPI installation check
\n
"
);
return
;
}
else
INT_BARF
(
context
,
0x67
);
break
;
default:
INT_BARF
(
context
,
0x67
);
}
...
...
This diff is collapsed.
Click to expand it.
dlls/winedos/xms.c
+
18
−
0
View file @
3c9d9182
...
...
@@ -104,6 +104,24 @@ void WINAPI XMS_Handler( CONTEXT86 *context )
if
(
move
->
Dest
.
Handle
)
GlobalUnlock16
(
move
->
Dest
.
Handle
);
break
;
}
case
0x88
:
/* Query Any Free Extended Memory */
{
MEMORYSTATUS
status
;
SYSTEM_INFO
info
;
TRACE
(
"query any free extended memory
\n
"
);
GlobalMemoryStatus
(
&
status
);
GetSystemInfo
(
&
info
);
context
->
Eax
=
status
.
dwAvailVirtual
>>
10
;
context
->
Edx
=
status
.
dwAvailVirtual
>>
10
;
context
->
Ecx
=
(
DWORD
)
info
.
lpMaximumApplicationAddress
;
SET_BL
(
context
,
0
);
/* No errors. */
TRACE
(
"returning largest %ldK, total %ldK, highest 0x%lx
\n
"
,
context
->
Eax
,
context
->
Edx
,
context
->
Ecx
);
}
break
;
default:
INT_BARF
(
context
,
0x31
);
SET_AX
(
context
,
0x0000
);
/* failure */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment