Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/spu/syscalls.c')
-rw-r--r--libgloss/spu/syscalls.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libgloss/spu/syscalls.c b/libgloss/spu/syscalls.c
index 7e85fa502..f2f292853 100644
--- a/libgloss/spu/syscalls.c
+++ b/libgloss/spu/syscalls.c
@@ -29,7 +29,6 @@ POSSIBILITY OF SUCH DAMAGE.
Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
*/
-#include <spu_intrinsics.h>
#include <errno.h>
#include "jsre.h"
@@ -37,7 +36,6 @@ int
__send_to_ppe (unsigned int signalcode, unsigned int opcode, void *data)
{
- int newerrno;
unsigned int combined = ( ( opcode<<24 )&0xff000000 ) | ( ( unsigned int )data & 0x00ffffff );
__vector unsigned int stopfunc = {
@@ -50,13 +48,7 @@ __send_to_ppe (unsigned int signalcode, unsigned int opcode, void *data)
void (*f) (void) = (void *) &stopfunc;
asm ("sync");
f ();
- newerrno = ((unsigned int *) data)[3];
- /*
- * Note: branchless code to conditionally set errno using
- * spu_cmpeq and spu_sel used more space than the following.
- */
- if (newerrno)
- errno = newerrno;
+ errno = ((unsigned int *) data)[3];
/*
* Return the rc code stored in slot 0.