[Cbe-oss-dev] [PATCH] libspe2: Fix exit status for isolation error

Dirk Herrendoerfer d.herrendoerfer at de.ibm.com
Fri Nov 16 23:22:54 EST 2007


Yes, OK.

have a nice Weekend !

Dirk



                                                                           
             Kazunori Asayama                                              
             <asayama at sm.sony.                                             
             co.jp>                                                     To 
             Sent by:                  cbe-oss-dev at ozlabs.org              
             cbe-oss-dev-bounc                                          cc 
             es+d.herrendoerfe                                             
             r=de.ibm.com at ozla                                     Subject 
             bs.org                    [Cbe-oss-dev] [PATCH] libspe2: Fix  
                                       exit status for isolation error     
                                                                           
             16.11.2007 07:22                                              
                                                                           
                                                                           
                                                                           
                                                                           




This patch fixes the return value and errno of spe_context_run in
case of isolation error.

Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>

OK to apply ?
---
 spebase/run.c |    2 ++
 1 file changed, 2 insertions(+)

Index: b/spebase/run.c
===================================================================
--- a/spebase/run.c            2007-11-15 14:51:37.000000000 +0900
+++ b/spebase/run.c            2007-11-15 15:00:26.000000000 +0900
@@ -313,6 +313,8 @@ do_run:
                                                 stopinfo->stop_reason =
SPE_ISOLATION_ERROR;

stopinfo->result.spe_isolation_error =
                                                             stopcode &
0xf;
+                                                errno = EFAULT;
+                                                retval = -1;
                                     }

                         } else if (spe->base_private->flags & SPE_ISOLATE
&&
_______________________________________________
cbe-oss-dev mailing list
cbe-oss-dev at ozlabs.org
https://ozlabs.org/mailman/listinfo/cbe-oss-dev





More information about the cbe-oss-dev mailing list