Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
30063b54
Commit
30063b54
authored
Jan 14, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Implemented the call_on_stack function for Sparc.
parent
4b028deb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
port.c
libs/wine/port.c
+13
-0
No files found.
libs/wine/port.c
View file @
30063b54
...
...
@@ -182,6 +182,19 @@ __ASM_GLOBAL_FUNC( wine_call_on_stack,
"mov PC, r2
\n\t
"
/* call func */
"mov sp, r4
\n\t
"
/* restore old sp from local var */
"pop {r4,PC}"
)
/* fetch return address into pc */
#elif defined(__sparc__) && defined(__GNUC__)
__ASM_GLOBAL_FUNC
(
wine_call_on_stack
,
"save %sp, -96, %sp
\n\t
"
/* push: change register window */
"mov %sp, %l2
\n\t
"
/* store old sp in local var */
"mov %i0, %l0
\n\t
"
/* func */
"mov %i1, %l1
\n\t
"
/* arg */
"sub %i2, 96, %sp
\n\t
"
/* stack */
"call %l0, 0
\n\t
"
/* call func */
"mov %l1, %o0
\n\t
"
/* delay slot: arg for func */
"mov %l2, %sp
\n\t
"
/* restore old sp from local var */
"mov %o0, %i0
\n\t
"
/* move return value to right register window */
"ret
\n\t
"
/* return */
"restore
\n\t
"
)
/* delay slot: pop */
#else
#error You must implement wine_switch_to_stack for your platform
#endif
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