aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-09-04 20:26:18 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-09-04 20:26:18 +0000
commit2c4143f4012c77dcdf722bd87b10397e170ecb0d (patch)
tree8770ed4fe0b306130297679f7e48add39cc8a2da /libgloss
parent27b975f6fdf3c42e9846aef642d2438f8bfbb471 (diff)
downloadnewlib-2c4143f4012c77dcdf722bd87b10397e170ecb0d.zip
newlib-2c4143f4012c77dcdf722bd87b10397e170ecb0d.tar.gz
newlib-2c4143f4012c77dcdf722bd87b10397e170ecb0d.tar.bz2
2008-09-04 Ken Werner <ken.werner@de.ibm.com>
* spu/Makefile.in: Fix missing linux_syscalls.o. * spu/linux_syscalls.c: Remove extraneous "3D" sequences.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/ChangeLog5
-rw-r--r--libgloss/spu/Makefile.in3
-rw-r--r--libgloss/spu/linux_syscalls.c10
3 files changed, 12 insertions, 6 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 4eeda4b..94b8a32 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-04 Ken Werner <ken.werner@de.ibm.com>
+
+ * spu/Makefile.in: Fix missing linux_syscalls.o.
+ * spu/linux_syscalls.c: Remove extraneous "3D" sequences.
+
2008-08-14 Jie Zhang <jie.zhang@analog.com>
* bfin/Makefile.in: (top_srcdir): Define.
diff --git a/libgloss/spu/Makefile.in b/libgloss/spu/Makefile.in
index 86f9d47..18680b6 100644
--- a/libgloss/spu/Makefile.in
+++ b/libgloss/spu/Makefile.in
@@ -58,7 +58,8 @@ OBJS = \
access.o chdir.o chmod.o chown.o close.o conv_stat.o dirfuncs.o dup.o \
dup2.o exit.o fchdir.o fchmod.o fchown.o fdatasync.o fstat.o \
fsync.o ftruncate.o getcwd.o getpagesize.o getpid.o \
- gettimeofday.o isatty.o kill.o lchown.o link.o lockf.o lseek.o \
+ gettimeofday.o isatty.o kill.o lchown.o \
+ link.o linux_syscalls.o lockf.o lseek.o \
lstat.o mkdir.o mknod.o mkstemp.o mktemp.o nanosleep.o open.o \
pread.o pwrite.o read.o readlink.o readv.o rmdir.o sbrk.o \
sched_yield.o shm_open.o shm_unlink.o stat.o symlink.o sync.o \
diff --git a/libgloss/spu/linux_syscalls.c b/libgloss/spu/linux_syscalls.c
index e8563ef..1ecc241 100644
--- a/libgloss/spu/linux_syscalls.c
+++ b/libgloss/spu/linux_syscalls.c
@@ -37,26 +37,26 @@ int
__linux_syscall (struct spu_syscall_block *s)
{
int ret;
- __vector unsigned int stopfunc =3D {
+ __vector unsigned int stopfunc = {
0x00002104, /* stop 0x2104 */
(unsigned int) s,
0x4020007f, /* nop */
0x35000000 /* bi $0 */
};
- void (*f) (void) =3D (void *) &stopfunc;
+ void (*f) (void) = (void *) &stopfunc;
asm ("sync");
f ();
if (s->nr_ret > -4096ull)
{
- errno =3D -s->nr_ret;
- ret =3D -1;
+ errno = -s->nr_ret;
+ ret = -1;
}
else
{
- ret =3D s->nr_ret;
+ ret = s->nr_ret;
}
return ret;
}