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
102dd9e9
Commit
102dd9e9
authored
Jan 16, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Rename __wine_call_from_32_regs for consistency with 64-bit.
parent
c7ccf240
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
kernel16_private.h
dlls/krnl386.exe16/kernel16_private.h
+1
-1
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+3
-3
relay.c
tools/winebuild/relay.c
+6
-5
No files found.
dlls/krnl386.exe16/kernel16_private.h
View file @
102dd9e9
...
...
@@ -287,7 +287,7 @@ static inline struct kernel_thread_data *kernel_get_thread_data(void)
".byte 0x68\n\t"
/* pushl $__regs_func */
\
".long " __ASM_NAME("__regs_") #name "-.-11\n\t" \
".byte 0x6a," #args "\n\t"
/* pushl $args */
\
"call " __ASM_NAME("__wine_call_from_
32_
regs") "\n\t" \
"call " __ASM_NAME("__wine_call_from_regs") "\n\t" \
"ret $(4*" #args ")" )
/* fake ret to make copy protections happy */
#endif
/* __WINE_KERNEL16_PRIVATE_H */
dlls/ntdll/ntdll_misc.h
View file @
102dd9e9
...
...
@@ -237,7 +237,7 @@ static inline struct ntdll_thread_data *ntdll_get_thread_data(void)
".byte 0x68\n\t"
/* pushl $__regs_func */
\
".long " __ASM_NAME("__regs_") #name "-.-11\n\t" \
".byte 0x6a," #args "\n\t"
/* pushl $args */
\
"call " __ASM_NAME("__wine_call_from_
32_
regs") "\n\t" \
"call " __ASM_NAME("__wine_call_from_regs") "\n\t" \
"ret $(4*" #args ")" )
/* fake ret to make copy protections happy */
#elif defined(__x86_64__)
#define DEFINE_REGS_ENTRYPOINT( name, args ) \
...
...
dlls/ntdll/signal_i386.c
View file @
102dd9e9
...
...
@@ -423,7 +423,7 @@ static wine_signal_handler handlers[256];
static
int
fpux_support
;
/* whether the CPU support extended fpu context */
extern
void
DECLSPEC_NORETURN
__wine_
call_from_32_
restore_regs
(
const
CONTEXT
*
context
);
extern
void
DECLSPEC_NORETURN
__wine_restore_regs
(
const
CONTEXT
*
context
);
enum
i386_trap_code
{
...
...
@@ -1173,7 +1173,7 @@ void set_cpu_context( const CONTEXT *context )
if
(
!
(
flags
&
CONTEXT_CONTROL
))
FIXME
(
"setting partial context (%x) not supported
\n
"
,
flags
);
else
if
(
flags
&
CONTEXT_SEGMENTS
)
__wine_
call_from_32_
restore_regs
(
context
);
__wine_restore_regs
(
context
);
else
{
CONTEXT
newcontext
=
*
context
;
...
...
@@ -1181,7 +1181,7 @@ void set_cpu_context( const CONTEXT *context )
newcontext
.
SegEs
=
wine_get_es
();
newcontext
.
SegFs
=
wine_get_fs
();
newcontext
.
SegGs
=
wine_get_gs
();
__wine_
call_from_32_
restore_regs
(
&
newcontext
);
__wine_restore_regs
(
&
newcontext
);
}
}
}
...
...
tools/winebuild/relay.c
View file @
102dd9e9
...
...
@@ -752,7 +752,8 @@ static void BuildCallFrom32Regs(void)
/* Function header */
function_header
(
"__wine_call_from_32_regs"
);
output
(
"
\t
.text
\n
"
);
function_header
(
"__wine_call_from_regs"
);
/* Allocate some buffer space on the stack */
...
...
@@ -845,12 +846,12 @@ static void BuildCallFrom32Regs(void)
output
(
"
\t
popl %%ds
\n
"
);
output
(
"
\t
iret
\n
"
);
output_function_size
(
"__wine_call_from_
32_
regs"
);
output_function_size
(
"__wine_call_from_regs"
);
function_header
(
"__wine_
call_from_32_
restore_regs"
);
function_header
(
"__wine_restore_regs"
);
output
(
"
\t
movl 4(%%esp),%%ecx
\n
"
);
output
(
"
\t
jmp 2b
\n
"
);
output_function_size
(
"__wine_
call_from_32_
restore_regs"
);
output_function_size
(
"__wine_restore_regs"
);
}
...
...
@@ -991,6 +992,7 @@ static void build_call_from_regs_x86_64(void)
/* Function header */
output
(
"
\t
.text
\n
"
);
function_header
(
"__wine_call_from_regs"
);
output
(
"
\t
.cfi_startproc
\n
"
);
...
...
@@ -1170,7 +1172,6 @@ void BuildRelays32(void)
case
CPU_x86_64
:
output
(
"/* File generated automatically. Do not edit! */
\n\n
"
);
output
(
"
\t
.text
\n
"
);
build_call_from_regs_x86_64
();
output_gnu_stack_note
();
break
;
...
...
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