diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-08 02:34:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-08 02:34:27 +0000 |
commit | 2a051a7d1af290fee89e8b0a5ba8e5a86f325a25 (patch) | |
tree | 8f07fb2a508532e8675705d6c956506c3cece73e /sysdeps/unix/sysv/linux/sh/brk.c | |
parent | d9c734e9cdab99931ddbbbc6de30a109be1483e6 (diff) | |
download | glibc-2a051a7d1af290fee89e8b0a5ba8e5a86f325a25.tar glibc-2a051a7d1af290fee89e8b0a5ba8e5a86f325a25.tar.gz glibc-2a051a7d1af290fee89e8b0a5ba8e5a86f325a25.tar.bz2 glibc-2a051a7d1af290fee89e8b0a5ba8e5a86f325a25.zip |
Update.
2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
for SH.
* sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
after the trapa instruction.
* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
parameters.
* sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
(NEED_SYSCALL_INST_PAD): Define.
* sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
avoid to use definition for the kernel.
* sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
Save and restore the frame pointer.
(SYSCALL_INST_PAD): Define.
(INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
(INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
after trapa instruction.
(INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/brk.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/brk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/brk.c b/sysdeps/unix/sysv/linux/sh/brk.c index bf55a61a26..0524478b59 100644 --- a/sysdeps/unix/sysv/linux/sh/brk.c +++ b/sysdeps/unix/sysv/linux/sh/brk.c @@ -1,5 +1,5 @@ /* brk system call for Linux/SH. - Copyright (C) 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,7 +31,7 @@ __brk (void *addr) register long r3 asm ("%r3") = SYS_ify (brk); register long r4 asm ("%r4") = (long)addr; - asm volatile ("trapa #0x11" + asm volatile ("trapa #0x11\n\t" SYSCALL_INST_PAD : "=z"(newbrk) : "r" (r3), "r" (r4)); |