OSDN Git Service

2008-09-04 Ken Werner <ken.werner@de.ibm.com>
authorjjohnstn <jjohnstn>
Thu, 4 Sep 2008 20:26:18 +0000 (20:26 +0000)
committerjjohnstn <jjohnstn>
Thu, 4 Sep 2008 20:26:18 +0000 (20:26 +0000)
        * spu/Makefile.in: Fix missing linux_syscalls.o.
        * spu/linux_syscalls.c: Remove extraneous "3D" sequences.

libgloss/ChangeLog
libgloss/spu/Makefile.in
libgloss/spu/linux_syscalls.c

index 4eeda4b..94b8a32 100644 (file)
@@ -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.
index 86f9d47..18680b6 100644 (file)
@@ -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 \
index e8563ef..1ecc241 100644 (file)
@@ -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;
 }