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
56dff0d4
Commit
56dff0d4
authored
Nov 20, 2002
by
Jukka Heinonen
Committed by
Alexandre Julliard
Nov 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some Win32s specific code.
parent
1a6afad1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
37 deletions
+4
-37
krnl386.exe.spec
dlls/kernel/krnl386.exe.spec
+2
-2
selectors.h
include/selectors.h
+0
-5
selector.c
memory/selector.c
+0
-30
vxd.c
msdos/vxd.c
+2
-0
No files found.
dlls/kernel/krnl386.exe.spec
View file @
56dff0d4
...
@@ -186,8 +186,8 @@
...
@@ -186,8 +186,8 @@
183 equate __0000H 0
183 equate __0000H 0
184 pascal GlobalDOSAlloc(long) GlobalDOSAlloc16
184 pascal GlobalDOSAlloc(long) GlobalDOSAlloc16
185 pascal16 GlobalDOSFree(word) GlobalDOSFree16
185 pascal16 GlobalDOSFree(word) GlobalDOSFree16
186 pascal GetSelectorBase(word)
WIN16_
GetSelectorBase
186 pascal GetSelectorBase(word) GetSelectorBase
187 pascal16 SetSelectorBase(word long)
WIN16_
SetSelectorBase
187 pascal16 SetSelectorBase(word long) SetSelectorBase
188 pascal GetSelectorLimit(word) GetSelectorLimit16
188 pascal GetSelectorLimit(word) GetSelectorLimit16
189 pascal16 SetSelectorLimit(word long) SetSelectorLimit16
189 pascal16 SetSelectorLimit(word long) SetSelectorLimit16
190 equate __E000H 0
190 equate __E000H 0
...
...
include/selectors.h
View file @
56dff0d4
...
@@ -28,11 +28,6 @@ extern WORD SELECTOR_AllocBlock( const void *base, DWORD size, unsigned char fla
...
@@ -28,11 +28,6 @@ extern WORD SELECTOR_AllocBlock( const void *base, DWORD size, unsigned char fla
extern
WORD
SELECTOR_ReallocBlock
(
WORD
sel
,
const
void
*
base
,
DWORD
size
);
extern
WORD
SELECTOR_ReallocBlock
(
WORD
sel
,
const
void
*
base
,
DWORD
size
);
extern
void
SELECTOR_FreeBlock
(
WORD
sel
);
extern
void
SELECTOR_FreeBlock
(
WORD
sel
);
extern
UINT
W32S_offset
;
#define W32S_APP2WINE(addr) ((addr)? (DWORD)(addr) + W32S_offset : 0)
#define W32S_WINE2APP(addr) ((addr)? (DWORD)(addr) - W32S_offset : 0)
#define FIRST_LDT_ENTRY_TO_ALLOC 17
#define FIRST_LDT_ENTRY_TO_ALLOC 17
#define IS_SELECTOR_FREE(sel) (!(wine_ldt_copy.flags[LOWORD(sel) >> 3] & WINE_LDT_FLAGS_ALLOCATED))
#define IS_SELECTOR_FREE(sel) (!(wine_ldt_copy.flags[LOWORD(sel) >> 3] & WINE_LDT_FLAGS_ALLOCATED))
...
...
memory/selector.c
View file @
56dff0d4
...
@@ -317,21 +317,6 @@ void WINAPI LongPtrAdd16( DWORD ptr, DWORD add )
...
@@ -317,21 +317,6 @@ void WINAPI LongPtrAdd16( DWORD ptr, DWORD add )
/***********************************************************************
/***********************************************************************
* GetSelectorBase (KERNEL.186)
* GetSelectorBase (KERNEL.186)
*/
*/
DWORD
WINAPI
WIN16_GetSelectorBase
(
WORD
sel
)
{
/*
* Note: For Win32s processes, the whole linear address space is
* shifted by 0x10000 relative to the OS linear address space.
* See the comment in msdos/vxd.c.
*/
DWORD
base
=
GetSelectorBase
(
sel
);
return
W32S_WINE2APP
(
base
);
}
/***********************************************************************
* GetSelectorBase
*/
DWORD
WINAPI
GetSelectorBase
(
WORD
sel
)
DWORD
WINAPI
GetSelectorBase
(
WORD
sel
)
{
{
void
*
base
=
wine_ldt_copy
.
base
[
sel
>>
__AHSHIFT
];
void
*
base
=
wine_ldt_copy
.
base
[
sel
>>
__AHSHIFT
];
...
@@ -346,21 +331,6 @@ DWORD WINAPI GetSelectorBase( WORD sel )
...
@@ -346,21 +331,6 @@ DWORD WINAPI GetSelectorBase( WORD sel )
/***********************************************************************
/***********************************************************************
* SetSelectorBase (KERNEL.187)
* SetSelectorBase (KERNEL.187)
*/
*/
DWORD
WINAPI
WIN16_SetSelectorBase
(
WORD
sel
,
DWORD
base
)
{
/*
* Note: For Win32s processes, the whole linear address space is
* shifted by 0x10000 relative to the OS linear address space.
* See the comment in msdos/vxd.c.
*/
SetSelectorBase
(
sel
,
W32S_APP2WINE
(
base
)
);
return
sel
;
}
/***********************************************************************
* SetSelectorBase
*/
WORD
WINAPI
SetSelectorBase
(
WORD
sel
,
DWORD
base
)
WORD
WINAPI
SetSelectorBase
(
WORD
sel
,
DWORD
base
)
{
{
LDT_ENTRY
entry
;
LDT_ENTRY
entry
;
...
...
msdos/vxd.c
View file @
56dff0d4
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
vxd
);
WINE_DEFAULT_DEBUG_CHANNEL
(
vxd
);
#define W32S_APP2WINE(addr) ((addr)? (DWORD)(addr) + W32S_offset : 0)
#define W32S_WINE2APP(addr) ((addr)? (DWORD)(addr) - W32S_offset : 0)
#define VXD_BARF(context,name) \
#define VXD_BARF(context,name) \
DPRINTF( "vxd %s: unknown/not implemented parameters:\n" \
DPRINTF( "vxd %s: unknown/not implemented parameters:\n" \
...
...
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