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.
			
			
This commit is contained in:
		@@ -37,13 +37,12 @@ int
 | 
			
		||||
fstat (int file, struct stat *pstat)
 | 
			
		||||
{
 | 
			
		||||
        syscall_fstat_t sys;
 | 
			
		||||
        syscall_out_t   *psys_out = ( syscall_out_t* )&sys;
 | 
			
		||||
        jsre_stat_t pjstat;
 | 
			
		||||
        int ret;
 | 
			
		||||
 | 
			
		||||
        sys.file = file;
 | 
			
		||||
        sys.ptr = ( unsigned int )&pjstat;
 | 
			
		||||
 | 
			
		||||
        __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_FSTAT, &sys);
 | 
			
		||||
        ret = __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_FSTAT, &sys);
 | 
			
		||||
 | 
			
		||||
        pstat->st_dev = pjstat.dev;
 | 
			
		||||
        pstat->st_ino = pjstat.ino;
 | 
			
		||||
@@ -59,7 +58,5 @@ fstat (int file, struct stat *pstat)
 | 
			
		||||
        pstat->st_mtime = pjstat.mtime;
 | 
			
		||||
        pstat->st_ctime = pjstat.ctime;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        return( psys_out->rc );
 | 
			
		||||
        return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user