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
068cedc7
Commit
068cedc7
authored
Jan 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Reimplemented the MapHInst functions in assembly.
parent
643463b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
30 deletions
+40
-30
kernel32.spec
dlls/kernel/kernel32.spec
+4
-4
krnl386.exe.spec
dlls/kernel/krnl386.exe.spec
+2
-2
ne_module.c
dlls/kernel/ne_module.c
+34
-24
No files found.
dlls/kernel/kernel32.spec
View file @
068cedc7
...
...
@@ -790,10 +790,10 @@
@ stdcall LockFileEx(long long long long long ptr)
@ stdcall LockResource(long)
@ stdcall MakeCriticalSectionGlobal(ptr)
@ stdcall -i386 -
register
MapHInstLS()
@ stdcall -i386 -
register
MapHInstLS_PN()
@ stdcall -i386 -
register
MapHInstSL()
@ stdcall -i386 -
register
MapHInstSL_PN()
@ stdcall -i386 -
norelay
MapHInstLS()
@ stdcall -i386 -
norelay
MapHInstLS_PN()
@ stdcall -i386 -
norelay
MapHInstSL()
@ stdcall -i386 -
norelay
MapHInstSL_PN()
@ stdcall MapHModuleLS(long)
@ stdcall MapHModuleSL(long)
@ stdcall MapLS(ptr)
...
...
dlls/kernel/krnl386.exe.spec
View file @
068cedc7
...
...
@@ -374,8 +374,8 @@
469 stub WOAGimmeTitle
470 stub WOADestroyConsole
471 pascal GetCurrentProcessId() GetCurrentProcessId
472 pascal -register MapHInstLS()
__regs_MapHInstLS
473 pascal -register MapHInstSL()
__regs_MapHInstSL
472 pascal -register MapHInstLS()
MapHInstLS16
473 pascal -register MapHInstSL()
MapHInstSL16
474 pascal CloseW32Handle(long) CloseHandle
475 pascal -ret16 GetTEBSelectorFS() GetTEBSelectorFS16
476 pascal ConvertToGlobalHandle(long) ConvertToGlobalHandle
...
...
dlls/kernel/ne_module.c
View file @
068cedc7
...
...
@@ -2138,47 +2138,57 @@ HMODULE WINAPI MapHModuleSL(HMODULE16 hmod)
}
/***************************************************************************
* MapHInstLS (KERNEL32.@)
* MapHInstLS (KERNEL.472)
*/
void
WINAPI
__regs_MapHInstLS
(
CONTEXT86
*
context
)
void
WINAPI
MapHInstLS16
(
CONTEXT86
*
context
)
{
context
->
Eax
=
MapHModuleLS
(
(
HMODULE
)
context
->
Eax
);
}
#ifdef DEFINE_REGS_ENTRYPOINT
DEFINE_REGS_ENTRYPOINT
(
MapHInstLS
,
0
,
0
);
#endif
/***************************************************************************
* MapHInstSL (KERNEL32.@)
* MapHInstSL (KERNEL.473)
*/
void
WINAPI
__regs_MapHInstSL
(
CONTEXT86
*
context
)
void
WINAPI
MapHInstSL16
(
CONTEXT86
*
context
)
{
context
->
Eax
=
(
DWORD
)
MapHModuleSL
(
context
->
Eax
);
}
#ifdef DEFINE_REGS_ENTRYPOINT
DEFINE_REGS_ENTRYPOINT
(
MapHInstSL
,
0
,
0
);
#endif
#ifdef __i386__
/***************************************************************************
* MapHInstLS (KERNEL32.@)
*/
__ASM_GLOBAL_FUNC
(
MapHInstLS
,
"pushl %eax
\n\t
"
"call "
__ASM_NAME
(
"MapHModuleLS"
)
"
\n\t
"
"ret"
);
/***************************************************************************
* MapHInstSL (KERNEL32.@)
*/
__ASM_GLOBAL_FUNC
(
MapHInstSL
,
"pushl %eax
\n\t
"
"call "
__ASM_NAME
(
"MapHModuleSL"
)
"
\n\t
"
"ret"
);
/***************************************************************************
* MapHInstLS_PN (KERNEL32.@)
*/
void
WINAPI
__regs_MapHInstLS_PN
(
CONTEXT86
*
context
)
{
if
(
context
->
Eax
)
context
->
Eax
=
MapHModuleLS
(
(
HMODULE
)
context
->
Eax
);
}
#ifdef DEFINE_REGS_ENTRYPOINT
DEFINE_REGS_ENTRYPOINT
(
MapHInstLS_PN
,
0
,
0
);
#endif
__ASM_GLOBAL_FUNC
(
MapHInstLS_PN
,
"testl %eax,%eax
\n\t
"
"jz 1f
\n\t
"
"pushl %eax
\n\t
"
"call "
__ASM_NAME
(
"MapHModuleLS"
)
"
\n
"
"1:
\t
ret"
);
/***************************************************************************
* MapHInstSL_PN (KERNEL32.@)
*/
void
WINAPI
__regs_MapHInstSL_PN
(
CONTEXT86
*
context
)
{
if
(
context
->
Eax
)
context
->
Eax
=
(
DWORD
)
MapHModuleSL
(
context
->
Eax
);
}
#ifdef DEFINE_REGS_ENTRYPOINT
DEFINE_REGS_ENTRYPOINT
(
MapHInstSL_PN
,
0
,
0
);
#endif
__ASM_GLOBAL_FUNC
(
MapHInstSL_PN
,
"andl $0xffff,%eax
\n\t
"
"jz 1f
\n\t
"
"pushl %eax
\n\t
"
"call "
__ASM_NAME
(
"MapHModuleSL"
)
"
\n
"
"1:
\t
ret"
);
#endif
/* __i386__ */
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