From 184dcf2bc384df5ed96c2f90994008605a222f6c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 5 Jun 2007 19:01:30 +0000 Subject: 2007-06-05 Patrick Mansfield * 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. --- libgloss/spu/read.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libgloss/spu/read.c') diff --git a/libgloss/spu/read.c b/libgloss/spu/read.c index 1a75ae0a2..4e7189c19 100644 --- a/libgloss/spu/read.c +++ b/libgloss/spu/read.c @@ -33,10 +33,20 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com) #include #include "jsre.h" +typedef struct +{ + unsigned int file; + unsigned int pad0[3]; + unsigned int ptr; + unsigned int pad1[3]; + unsigned int len; + unsigned int pad2[3]; +} syscall_read_t; + int read (int file, void *ptr, size_t len) { - syscall_write_t sys; + syscall_read_t sys; sys.file = file; sys.ptr = ( unsigned int )ptr; -- cgit v1.2.3