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
parent286eeb8faed4d21249e61d9cb51575cdc86c9945 (diff)
* aarch64/syscalls.c (stack_ptr): Defined with asm ("wsp") if __ILP32__
is defined.
-rw-r--r--libgloss/ChangeLog5
-rw-r--r--libgloss/aarch64/syscalls.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 6fdfccd16..71087e562 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-04 Yufeng Zhang <Yufeng.Zhang@arm.com>
+
+ * aarch64/syscalls.c (stack_ptr): Defined with asm ("wsp") if __ILP32__
+ is defined.
+
2013-07-02 Joey Ye <joey.ye@arm.com>
* arm/crt0.S (_mainCRTStartup): Weak reference to atexit and _fini
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 */