Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-04 14:21:52 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-07-04 14:21:52 +0400
commita5be77b2fee83824946d63bfb5dd17c4a0266915 (patch)
tree751d8b9a06f90b08bde1b824282fd1177a0ff6b8 /libgloss/aarch64
parent286eeb8faed4d21249e61d9cb51575cdc86c9945 (diff)
* aarch64/syscalls.c (stack_ptr): Defined with asm ("wsp") if __ILP32__
is defined.
Diffstat (limited to 'libgloss/aarch64')
-rw-r--r--libgloss/aarch64/syscalls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgloss/aarch64/syscalls.c b/libgloss/aarch64/syscalls.c
index a809476f8..058cef5cb 100644
--- a/libgloss/aarch64/syscalls.c
+++ b/libgloss/aarch64/syscalls.c
@@ -109,7 +109,11 @@ static struct fdent *findslot _PARAMS ((int));
static int newslot _PARAMS ((void));
/* Register name faking - works in collusion with the linker. */
+#ifdef __ILP32__
+register char * stack_ptr asm ("wsp");
+#else
register char * stack_ptr asm ("sp");
+#endif
/* following is copied from libc/stdio/local.h to check std streams */