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
Releases
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
Felix Münchhalfen
wine
Commits
80fc23a9
Commit
80fc23a9
authored
24 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Set selector 0000H base to 0xf0000 until the first 64K are
unprotected.
parent
353962d5
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/kernel/kernel_main.c
+1
-1
1 addition, 1 deletion
dlls/kernel/kernel_main.c
include/miscemu.h
+1
-0
1 addition, 0 deletions
include/miscemu.h
msdos/dosmem.c
+6
-2
6 additions, 2 deletions
msdos/dosmem.c
with
8 additions
and
3 deletions
dlls/kernel/kernel_main.c
+
1
−
1
View file @
80fc23a9
...
...
@@ -57,13 +57,13 @@ static BOOL process_attach(void)
DOSMEM_MapDosToLinear(addr), 0x10000, hModule, \
FALSE, FALSE, FALSE ))
SET_ENTRY_POINT
(
183
,
0x00000
);
/* KERNEL.183: __0000H */
SET_ENTRY_POINT
(
174
,
0xa0000
);
/* KERNEL.174: __A000H */
SET_ENTRY_POINT
(
181
,
0xb0000
);
/* KERNEL.181: __B000H */
SET_ENTRY_POINT
(
182
,
0xb8000
);
/* KERNEL.182: __B800H */
SET_ENTRY_POINT
(
195
,
0xc0000
);
/* KERNEL.195: __C000H */
SET_ENTRY_POINT
(
179
,
0xd0000
);
/* KERNEL.179: __D000H */
SET_ENTRY_POINT
(
190
,
0xe0000
);
/* KERNEL.190: __E000H */
NE_SetEntryPoint
(
hModule
,
183
,
DOSMEM_0000H
);
/* KERNEL.183: __0000H */
NE_SetEntryPoint
(
hModule
,
173
,
DOSMEM_BiosSysSeg
);
/* KERNEL.173: __ROMBIOS */
NE_SetEntryPoint
(
hModule
,
193
,
DOSMEM_BiosDataSeg
);
/* KERNEL.193: __0040H */
NE_SetEntryPoint
(
hModule
,
194
,
DOSMEM_BiosSysSeg
);
/* KERNEL.194: __F000H */
...
...
This diff is collapsed.
Click to expand it.
include/miscemu.h
+
1
−
0
View file @
80fc23a9
...
...
@@ -122,6 +122,7 @@ typedef struct
#include
"poppack.h"
extern
WORD
DOSMEM_0000H
;
extern
WORD
DOSMEM_BiosDataSeg
;
extern
WORD
DOSMEM_BiosSysSeg
;
extern
BIOSDATA
*
DOSMEM_BiosData
();
...
...
This diff is collapsed.
Click to expand it.
msdos/dosmem.c
+
6
−
2
View file @
80fc23a9
...
...
@@ -28,8 +28,9 @@
DEFAULT_DEBUG_CHANNEL
(
dosmem
);
DECLARE_DEBUG_CHANNEL
(
selector
);
HANDLE16
DOSMEM_BiosDataSeg
;
/* BIOS data segment at 0x40:0 */
HANDLE16
DOSMEM_BiosSysSeg
;
/* BIOS ROM segment at 0xf000:0 */
WORD
DOSMEM_0000H
;
/* segment at 0:0 */
WORD
DOSMEM_BiosDataSeg
;
/* BIOS data segment at 0x40:0 */
WORD
DOSMEM_BiosSysSeg
;
/* BIOS ROM segment at 0xf000:0 */
DWORD
DOSMEM_CollateTable
;
...
...
@@ -484,6 +485,8 @@ BOOL DOSMEM_Init(BOOL dos_init)
{
setup_dos_mem
(
dos_init
);
DOSMEM_0000H
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
DOSMEM_biosdata
-
0x400
,
0x10000
,
0
,
FALSE
,
FALSE
,
FALSE
);
DOSMEM_BiosDataSeg
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
DOSMEM_biosdata
,
0x100
,
0
,
FALSE
,
FALSE
,
FALSE
);
DOSMEM_BiosSysSeg
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
DOSMEM_dosmem
+
0xf0000
,
...
...
@@ -509,6 +512,7 @@ BOOL DOSMEM_Init(BOOL dos_init)
/* copy the BIOS area down to 0x400 */
memcpy
(
DOSMEM_dosmem
+
0x400
,
DOSMEM_biosdata
,
0x100
);
DOSMEM_biosdata
=
DOSMEM_dosmem
+
0x400
;
SetSelectorBase
(
DOSMEM_0000H
,
0
);
SetSelectorBase
(
DOSMEM_BiosDataSeg
,
0x400
);
}
/* interrupt table is at addr 0, so only do this when setting up DOS mode */
...
...
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