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
800dbf29
Commit
800dbf29
authored
May 07, 2002
by
Jukka Heinonen
Committed by
Alexandre Julliard
May 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for DPMI RawModeSwitch.
parent
92b376d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
callback.h
include/callback.h
+1
-0
dpmi.c
msdos/dpmi.c
+15
-0
int2f.c
msdos/int2f.c
+0
-3
No files found.
include/callback.h
View file @
800dbf29
...
...
@@ -32,6 +32,7 @@ typedef struct {
void
(
WINAPI
*
CallRMProc
)(
CONTEXT86
*
context
,
int
iret
);
void
(
WINAPI
*
AllocRMCB
)(
CONTEXT86
*
context
);
void
(
WINAPI
*
FreeRMCB
)(
CONTEXT86
*
context
);
void
(
WINAPI
*
RawModeSwitch
)(
CONTEXT86
*
context
);
/* I/O functions */
void
(
WINAPI
*
SetTimer
)(
unsigned
ticks
);
...
...
msdos/dpmi.c
View file @
800dbf29
...
...
@@ -65,6 +65,7 @@ BOOL DPMI_LoadDosSystem(void)
GET_ADDR
(
CallRMProc
);
GET_ADDR
(
AllocRMCB
);
GET_ADDR
(
FreeRMCB
);
GET_ADDR
(
RawModeSwitch
);
GET_ADDR
(
SetTimer
);
GET_ADDR
(
GetTimer
);
GET_ADDR
(
inport
);
...
...
@@ -190,6 +191,15 @@ static void FreeRMCB( CONTEXT86 *context )
else
Dosvm
.
FreeRMCB
(
context
);
}
static
void
RawModeSwitch
(
CONTEXT86
*
context
)
{
if
(
!
Dosvm
.
RawModeSwitch
)
{
ERR
(
"could not setup real-mode calls
\n
"
);
return
;
}
else
Dosvm
.
RawModeSwitch
(
context
);
}
/**********************************************************************
* INT_Int31Handler (WPROCS.149)
...
...
@@ -207,6 +217,11 @@ void WINAPI INT_Int31Handler( CONTEXT86 *context )
DWORD
dw
;
BYTE
*
ptr
;
if
(
context
->
SegCs
==
DOSMEM_dpmi_sel
)
{
RawModeSwitch
(
context
);
return
;
}
RESET_CFLAG
(
context
);
switch
(
AX_reg
(
context
))
{
...
...
msdos/int2f.c
View file @
800dbf29
...
...
@@ -356,9 +356,6 @@ static void do_int2f_16( CONTEXT86 *context )
break
;
case
0x87
:
/* DPMI installation check */
#if 1
/* DPMI still breaks pkunzip */
if
(
ISV86
(
context
))
break
;
/* so bail out for now if in v86 mode */
#endif
{
SYSTEM_INFO
si
;
GetSystemInfo
(
&
si
);
...
...
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