diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-07-04 10:21:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-07-04 10:21:52 +0000 |
commit | a5be77b2fee83824946d63bfb5dd17c4a0266915 (patch) | |
tree | 751d8b9a06f90b08bde1b824282fd1177a0ff6b8 /libgloss | |
parent | 286eeb8faed4d21249e61d9cb51575cdc86c9945 (diff) | |
download | cygnal-a5be77b2fee83824946d63bfb5dd17c4a0266915.tar.gz cygnal-a5be77b2fee83824946d63bfb5dd17c4a0266915.tar.bz2 cygnal-a5be77b2fee83824946d63bfb5dd17c4a0266915.zip |
* aarch64/syscalls.c (stack_ptr): Defined with asm ("wsp") if __ILP32__
is defined.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/ChangeLog | 5 | ||||
-rw-r--r-- | libgloss/aarch64/syscalls.c | 4 |
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 */ |