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
c704758a
Commit
c704758a
authored
Sep 18, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Sep 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libs/wine: Fix ARM support.
parent
16060356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
port.c
libs/wine/port.c
+9
-13
No files found.
libs/wine/port.c
View file @
c704758a
...
...
@@ -171,20 +171,16 @@ __ASM_GLOBAL_FUNC( wine_call_on_stack,
"lwz 0, 4(1)
\n\t
"
/* fetch return address */
"mtlr 0
\n\t
"
/* return address -> lr */
"blr"
)
/* return */
#elif defined(__arm__)
#elif defined(__arm__)
&& defined(__GNUC__)
__ASM_GLOBAL_FUNC
(
wine_call_on_stack
,
"str r14, [r13, #4]
\n\t
"
/* save return address on stack */
"sub r2, r2, #16
\n\t
"
/* reserve space on new stack */
"str r13, [r2, #12]
\n\t
"
/* store old sp */
"mov r3, r0
\n\t
"
/* func */
"mov r0, r1
\n\t
"
/* arg */
"mov r13, r2
\n\t
"
/* stack */
"mov r2, #0
\n\t
"
/* zero */
"str r2, [r13]
\n\t
"
/* bottom of stack */
"sub r13, r13, #16
\n\t
"
/* create a frame for this function */
"blx r3
\n\t
"
/* call func */
"ldr r13, [r13, #28]
\n\t
"
/* fetch old sp */
"ldr r15, [r13, #4]"
)
/* fetch return address and return */
"push {r4,LR}
\n\t
"
/* save return address on stack */
"mov r4, sp
\n\t
"
/* store old sp in local var */
"mov sp, r2
\n\t
"
/* stack */
"mov r2, r0
\n\t
"
/* func -> scratch register */
"mov r0, r1
\n\t
"
/* arg */
"blx r2
\n\t
"
/* call func */
"mov sp, r4
\n\t
"
/* restore old sp from local var */
"pop {r4,PC}"
)
/* fetch return address into pc */
#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