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
c90ab917
Commit
c90ab917
authored
Feb 04, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Don't define obsolete functions on non-x86 platforms.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97420c87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
asm.h
include/wine/asm.h
+1
-1
port.c
libs/wine/port.c
+0
-23
No files found.
include/wine/asm.h
View file @
c90ab917
...
...
@@ -175,7 +175,7 @@
#endif
/* __i386__ */
#if defined(__GNUC__) && !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__)
#if defined(__GNUC__) &&
(defined(__i386__) || defined(__x86_64__)) &&
!defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__)
#define __ASM_OBSOLETE(func) __asm__( ".symver " #func "_obsolete," #func "@WINE_1.0" )
#else
#undef __ASM_OBSOLETE
...
...
libs/wine/port.c
View file @
c90ab917
...
...
@@ -104,29 +104,6 @@ __ASM_GLOBAL_FUNC( wine_call_on_stack_obsolete,
__ASM_CFI
(
".cfi_adjust_cfa_offset -8
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %rbp
\n\t
"
)
"ret"
)
#elif defined(__arm__) && defined(__GNUC__)
__ASM_GLOBAL_FUNC
(
wine_call_on_stack_obsolete
,
"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 */
#elif defined(__aarch64__) && defined(__GNUC__)
__ASM_GLOBAL_FUNC
(
wine_call_on_stack_obsolete
,
"stp x29, x30, [sp,#-32]!
\n\t
"
/* save return address on stack */
"str x19, [sp,#16]
\n\t
"
/* save register on stack */
"mov x19, sp
\n\t
"
/* store old sp in local var */
"mov sp, x2
\n\t
"
/* stack */
"mov x2, x0
\n\t
"
/* func -> scratch register */
"mov x0, x1
\n\t
"
/* arg */
"blr x2
\n\t
"
/* call func */
"mov sp, x19
\n\t
"
/* restore old sp from local var */
"ldr x19, [sp,#16]
\n\t
"
/* restore register from stack */
"ldp x29, x30, [sp],#32
\n\t
"
/* restore return address */
"ret"
)
/* return */
#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