[Cbe-oss-dev] [PATCH 1/2] libspe2: Fix return values of PPE-assisted callback handlers
Kazunori Asayama
asayama at sm.sony.co.jp
Fri Jul 13 17:58:39 EST 2007
The libspe2 spec says that spe_context_run stores the return values of
PPE-assisted callback handler in spe_callback_error of spe_stop_info_t
structure, but the current implementation always returns -1. This
patch fix the problem.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
---
spebase/lib_builtin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/spebase/lib_builtin.c
===================================================================
--- a/spebase/lib_builtin.c 2007-07-03 10:34:49.000000000 +0900
+++ b/spebase/lib_builtin.c 2007-07-05 15:07:33.000000000 +0900
@@ -161,7 +161,7 @@ int handle_library_callback(struct spe_c
if (rc) {
DEBUG_PRINTF ("SPE library call unsupported.\n");
errno=ENOSYS;
- return -1;
+ return rc;
}
return 0;
}
More information about the cbe-oss-dev
mailing list