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
ef783d62
Commit
ef783d62
authored
Aug 09, 2015
by
André Hentschel
Committed by
Alexandre Julliard
Aug 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add ARM support.
parent
3ad5a078
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+34
-0
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
ef783d62
...
...
@@ -1094,6 +1094,40 @@ __ASM_GLOBAL_FUNC( call_server_func,
__ASM_CFI
(
".cfi_adjust_cfa_offset -8
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %rbp
\n\t
"
)
"ret"
)
#elif defined __arm__
LONG_PTR
__cdecl
call_server_func
(
SERVER_ROUTINE
func
,
unsigned
char
*
args
,
unsigned
int
stack_size
);
__ASM_GLOBAL_FUNC
(
call_server_func
,
".arm
\n\t
"
"push {r4, r5, LR}
\n\t
"
"mov r4, r0
\n\t
"
"mov r5, SP
\n\t
"
"lsr r3, r2, #2
\n\t
"
"cmp r3, #0
\n\t
"
"beq 5f
\n\t
"
"sub SP, SP, r2
\n\t
"
"tst r3, #1
\n\t
"
"subeq SP, SP, #4
\n\t
"
"1:
\t
sub r2, r2, #4
\n\t
"
"ldr r0, [r1, r2]
\n\t
"
"str r0, [SP, r2]
\n\t
"
"cmp r2, #0
\n\t
"
"bgt 1b
\n\t
"
"cmp r3, #1
\n\t
"
"bgt 2f
\n\t
"
"pop {r0}
\n\t
"
"b 5f
\n\t
"
"2:
\t
cmp r3, #2
\n\t
"
"bgt 3f
\n\t
"
"pop {r0-r1}
\n\t
"
"b 5f
\n\t
"
"3:
\t
cmp r3, #3
\n\t
"
"bgt 4f
\n\t
"
"pop {r0-r2}
\n\t
"
"b 5f
\n\t
"
"4:
\t
pop {r0-r3}
\n\t
"
"5:
\t
blx r4
\n\t
"
"mov SP, r5
\n\t
"
"pop {r4, r5, PC}"
)
#else
#warning call_server_func not implemented for your architecture
LONG_PTR
__cdecl
call_server_func
(
SERVER_ROUTINE
func
,
unsigned
char
*
args
,
unsigned
short
stack_size
)
...
...
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