Commit Graph

16 Commits

Author SHA1 Message Date
Jeff Johnston d8988870fa 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/jsre.h: Add new JSRE opcodes.
        * spu/dup2.c: New file to add dup2 support via assist call.
        * spu/fdatasync.c: New file to add fdatasync support via assist call.
        * spu/fsync.c: New file to add fsync support via assist call.
        * spu/lockf.c: New file to add lockf support via assist call.
        * spu/sync.c: New file to add sync support via assist call.
        * spu/truncate.c: New file to add truncate support via assist call.
        * spu/Makefile.in: Add new files.
2007-06-20 21:50:53 +00:00
Jeff Johnston 7f8ec7f163 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/jsre.h: JSRE_LINK, JSRE_SYMLINK and JSRE_READLINK.
        * spu/link.c: New file to add link support via an assist call.
        * spu/readlink.c: New file to add readlink support via an assist call.
        * spu/symlink.c: New file to add symlink support via an assist call.
        * spu/Makefile.in: Add new files.
2007-06-20 21:44:54 +00:00
Jeff Johnston 72a14088c2 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/jsre.h: Add JSRE_LSTAT.
        * spu/lstat.c: New file add lstat support via an assist call.
        * spu/conv_stat.c: New file, add common stat conversion code.
        * spu/fstat.c: Use __conv_stat.
        * spu/stat.c: Use __conv_stat.
        * spu/Makefile.in: Add conv_stat.o and lstat.o.
2007-06-20 21:41:33 +00:00
Jeff Johnston 2751142e3c 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/jsre.h: Add JSRE_GETCWD.
        * spu/getcwd.c: New file, implement getcwd with help from an
        assist call.
        * spu/Makefile.in: Add getcwd.
2007-06-20 21:38:55 +00:00
Jeff Johnston 38ebd2a6c0 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/jsre.h: Add defines for new assist calls.
        * spu/chdir.c: New file, support chdir via assist call.
        * spu/chmod.c: New file, support chmod via assist call.
        * spu/chown.c: New file, support chown via assist call.
        * spu/fchdir.c: New file, support fchdir via assist call.
        * spu/fchmod.c: New file, support fchmod via assist call.
        * spu/fchown.c: New file, support fchown via assist call.
        * spu/lchown.c: New file, support lchown via assist call.
        * spu/mkdir.c: New file, support mkdir via assist call.
        * spu/mknod.c: New file, support mknod via assist call.
        * spu/rmdir.c: New file, support rmdir via assist call.
        * spu/Makefile.in: Add new files.
2007-06-20 17:28:09 +00:00
Jeff Johnston 874e5ac68b 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/getpagesize.c: New file add getpagesize via an assist call.
        * spu/jsre.h: Add JSRE_GETPAGESIZE.
        * spu/Makefile.in: Add getpagesize.
2007-06-20 17:24:05 +00:00
Jeff Johnston 8905d0dcfd 2007-06-13 Patrick Mansfield <patmans@us.ibm.com>
* spu/Makefile.in: Add nanosleep.c.
        * spu/jsre.h: Add JSRE_NANOSLEEP.
        * spu/nanosleep.c: New file, supply nanosleep via an assist call.
2007-06-13 17:40:27 +00:00
Jeff Johnston 184dcf2bc3 2007-06-05 Patrick Mansfield <patman@us.ibm.com>
* spu/jsre.h: Remove the assist call structs and defines that are
        specific to one assist call from here.
        * spu/access.c: Move struct syscall_access_t to here.
        * spu/fstat.c: Move struct syscall_fstat_t to here.
        * spu/ftruncate.c: Move struct syscall_ftruncate_t to here.
        * spu/gettimeofday.c: Move struct syscall_gettimeofday_t to here.
        * spu/lseek.c: Move struct syscall_lseek_t and JSRE_SEEK defines to
        here.
        * spu/open.c: Move struct syscall_open_t and JSRE_O_ defines to here.
        * spu/read.c: Move struct syscall_read_t to here, and actually use
        it (it is the same as syscall_write_t).
        * spu/stat.c: Move struct syscall_stat_t to here.
        * spu/write.c: Move struct syscall_write_t to here.
        * spu/close.c: Pass the address of the first and only argument to
        __send_to_ppe rather than using an automatic variable and a
        special struct.
        * spu/dup.c: Ditto.
        * spu/unlink.c: Ditto.
2007-06-05 19:01:30 +00:00
Jeff Johnston a0050b64fc 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
* spu/syscalls.c: Change __send_to_ppe to return the result stored
        in stored in slot 0 of the data, rather than have each assisted
        call retrieve the value.
        * spu/jsre.h: Remove the now unused syscall_out_t.
        * spu/access.c: Use the __send_to_ppe result instead of the slot 0
        value, remove unused syscall_out_t variable.
        * spu/close.c: Ditto.
        * spu/dup.c: Ditto.
        * spu/fstat.c: Ditto.
        * spu/ftruncate.c: Ditto.
        * spu/gettimeofday.c: Ditto.
        * spu/lseek.c: Ditto.
        * spu/open.c: Ditto.
        * spu/read.c: Ditto.
        * spu/stat.c: Ditto.
        * spu/unlink.c: Ditto.
        * spu/write.c: Ditto.
2007-05-23 21:39:54 +00:00
Jeff Johnston c6e05f0d08 2007-04-04 Patrick Mansfield <patmans@us.ibm.com>
* spu/syscalls.c: Rename _send_to_ppe __send_to_ppe, and set errno
        on return from the offload call.
        * spu/jsre.h: Include sys/syscall.h for the send_to_ppe prototype.
        * spu/access.c: Call __send_to_ppe instead of _send_to_ppe, and
        remove the setting of errno.
        * spu/close.c: Ditto.
        * spu/dup.c: Ditto.
        * spu/fstat.c: Ditto.
        * spu/ftruncate.c: Ditto.
        * spu/gettimeofday.c: Ditto.
        * spu/lseek.c: Ditto.
        * spu/open.c: Ditto.
        * spu/read.c: Ditto.
        * spu/stat.c: Ditto.
        * spu/unlink.c: Ditto.
        * spu/write.c: Ditto.
2007-04-04 20:59:38 +00:00
Jeff Johnston fbadebae4e 2007-02-21 Patrick Mansfield <patmans@us.ibm.com>
* libgloss/spu/gettimeofday.c: New file which adds SPU gettimeofday.
        * libgloss/spu/jsre.h: Remove time, add gettimeofday.
        * libgloss/spu/Makefile.in: Ditto.
2007-02-21 19:30:44 +00:00
Jeff Johnston d7d262442c 2006-12-13 Sa Liu <saliu@de.ibm.com>
* spu/access.c: New file
        * spu/dup.c: New file
        * spu/ftruncate.c: New file
        * spu/jsre.h: add structures for new functions
        * spu/time.c: New file
        * spu/Makefile.in (access.o, dup.o, ftruncate.o, time.o): New targets.
2006-12-13 19:42:56 +00:00
Jeff Johnston 52d82ba527 2006-08-30 Kazunori Asayama <asayama@sm.sony.co.jp>
* spu/syscalls.c: Add a new argument to _send_to_ppe() to
        specify signal code.
        * spu/jsre.h: Update declaration of _send_to_ppe().
        * spu/close.c: Replace _send_to_ppe_0x2101() by _send_to_ppe().
        * spu/fstat.c: Ditto.
        * spu/lseek.c: Ditto.
        * spu/open.c: Ditto.
        * spu/read.c: Ditto.
        * spu/stat.c: Ditto.
        * spu/unlink.c: Ditto.
        * spu/write.c: Ditto.
2006-08-30 19:06:48 +00:00
Jeff Johnston 1fa66a83d1 2006-08-23 Kazunori Asayama <asayama@sm.sony.co.jp>
* spu/Makefile.in: Add new object files.
        * spu/syscalls.c: Move each system call to individual file.
        * spu/jsre.h: Add declaration of _send_to_ppe_0x2101().
        * spu/close.c: New file. Moved from spu/syscalls.c.
        * spu/fstat.c: Likewise.
        * spu/getpid.c: Likewise.
        * spu/isatty.c: Likewise.
        * spu/kill.c: Likewise.
        * spu/lseek.c: Likewise.
        * spu/open.c: Likewise.
        * spu/read.c: Likewise.
        * spu/stat.c: Likewise.
        * spu/unlink.c: Likewise.
        * spu/write.c: Likewise.
2006-08-23 16:13:24 +00:00
Jeff Johnston 1641d724b8 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
* spu/jsre.h(JSRE_STAT): New define.
        (syscall_stat_t): New type.
        * spu/syscalls.c(stat): New syscall.
2006-08-16 21:45:53 +00:00
Jeff Johnston 0486bb7f0d 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
*  configure.in: Add spu support.
        *  configure: Regenerated.
        *  spu/Makefile.in: New file.
        *  spu/aclocal.m4: Ditto.
        *  spu/configure: Ditto.
        *  spu/configure.in: Ditto.
        *  spu/crt0.c: Ditto.
        *  spu/exit.c: Ditto.
        *  spu/init.c: Ditto.
        *  spu/jsre.h: Ditto.
        *  spu/sbrk.c: Ditto.
        *  spu/syscalls.c: Ditto.
2006-08-16 21:15:03 +00:00