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
4cb00196
Commit
4cb00196
authored
Oct 28, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch back to the main process stack before calling exception
handlers.
parent
8f1b861e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
26 deletions
+25
-26
signal_i386.c
dlls/ntdll/signal_i386.c
+0
-0
relay.c
tools/winebuild/relay.c
+25
-26
No files found.
dlls/ntdll/signal_i386.c
View file @
4cb00196
This diff is collapsed.
Click to expand it.
tools/winebuild/relay.c
View file @
4cb00196
...
...
@@ -1006,41 +1006,40 @@ static void BuildCallFrom32Regs( FILE *outfile )
/* Call the entry point */
fprintf
(
outfile
,
"
\t
call *0(%%ebx)
\n
"
);
/* Store %eip and %ebp onto the new stack */
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%edx
\n
"
,
CONTEXTOFFSET
(
Esp
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%eax
\n
"
,
CONTEXTOFFSET
(
Eip
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %%eax,-4(%%edx)
\n
"
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%eax
\n
"
,
CONTEXTOFFSET
(
Ebp
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %%eax,-8(%%edx)
\n
"
);
fprintf
(
outfile
,
"
\t
leal -%d(%%ebp),%%ecx
\n
"
,
STACK_SPACE
);
/* Restore the context structure */
/* Note: we don't bother to restore %cs, %ds and %ss
* changing them in 32-bit code is a recipe for disaster anyway
*/
fprintf
(
outfile
,
"
\t
pushl %d(%%ebp)
\n
"
,
CONTEXTOFFSET
(
SegEs
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"2:
\t
pushl %d(%%ecx)
\n
"
,
CONTEXTOFFSET
(
SegEs
)
);
fprintf
(
outfile
,
"
\t
popl %%es
\n
"
);
fprintf
(
outfile
,
"
\t
pushl %d(%%e
bp)
\n
"
,
CONTEXTOFFSET
(
SegFs
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
pushl %d(%%e
cx)
\n
"
,
CONTEXTOFFSET
(
SegFs
)
);
fprintf
(
outfile
,
"
\t
popl %%fs
\n
"
);
fprintf
(
outfile
,
"
\t
pushl %d(%%e
bp)
\n
"
,
CONTEXTOFFSET
(
SegGs
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
pushl %d(%%e
cx)
\n
"
,
CONTEXTOFFSET
(
SegGs
)
);
fprintf
(
outfile
,
"
\t
popl %%gs
\n
"
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%edi
\n
"
,
CONTEXTOFFSET
(
Edi
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%esi
\n
"
,
CONTEXTOFFSET
(
Esi
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%edx
\n
"
,
CONTEXTOFFSET
(
Edx
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%ecx
\n
"
,
CONTEXTOFFSET
(
Ecx
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%ebx
\n
"
,
CONTEXTOFFSET
(
Ebx
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%edi
\n
"
,
CONTEXTOFFSET
(
Edi
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%esi
\n
"
,
CONTEXTOFFSET
(
Esi
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%edx
\n
"
,
CONTEXTOFFSET
(
Edx
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%ebx
\n
"
,
CONTEXTOFFSET
(
Ebx
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%eax
\n
"
,
CONTEXTOFFSET
(
Eax
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%ebp
\n
"
,
CONTEXTOFFSET
(
Ebp
)
);
fprintf
(
outfile
,
"
\t
pushl %d(%%e
bp)
\n
"
,
CONTEXTOFFSET
(
EFlags
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
pop
fl
\n
"
);
fprintf
(
outfile
,
"
\t
movl %d(%%e
bp),%%eax
\n
"
,
CONTEXTOFFSET
(
Eax
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
pushl %d(%%e
cx)
\n
"
,
CONTEXTOFFSET
(
SegSs
)
);
fprintf
(
outfile
,
"
\t
pop
l %%ss
\n
"
);
fprintf
(
outfile
,
"
\t
movl %d(%%e
cx),%%esp
\n
"
,
CONTEXTOFFSET
(
Esp
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ebp),%%ebp
\n
"
,
CONTEXTOFFSET
(
Esp
)
-
STACK_SPACE
);
fprintf
(
outfile
,
"
\t
leal -8(%%ebp),%%esp
\n
"
);
fprintf
(
outfile
,
"
\t
popl %%ebp
\n
"
);
fprintf
(
outfile
,
"
\t
ret
\n
"
);
fprintf
(
outfile
,
"
\t
pushl %d(%%ecx)
\n
"
,
CONTEXTOFFSET
(
EFlags
)
);
fprintf
(
outfile
,
"
\t
pushl %d(%%ecx)
\n
"
,
CONTEXTOFFSET
(
SegCs
)
);
fprintf
(
outfile
,
"
\t
pushl %d(%%ecx)
\n
"
,
CONTEXTOFFSET
(
Eip
)
);
fprintf
(
outfile
,
"
\t
pushl %d(%%ecx)
\n
"
,
CONTEXTOFFSET
(
SegDs
)
);
fprintf
(
outfile
,
"
\t
movl %d(%%ecx),%%ecx
\n
"
,
CONTEXTOFFSET
(
Ecx
)
);
fprintf
(
outfile
,
"
\t
popl %%ds
\n
"
);
fprintf
(
outfile
,
"
\t
iret
\n
"
);
function_header
(
outfile
,
"__wine_call_from_32_restore_regs"
);
fprintf
(
outfile
,
"
\t
leal 4(%%esp),%%ecx
\n
"
);
fprintf
(
outfile
,
"
\t
jmp 2b
\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