Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
librtas
librtas.bug-985643_open_RTAS_error_facility.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File librtas.bug-985643_open_RTAS_error_facility.patch of Package librtas
@@ -, +, @@ --- librtas_src/syscall_calls.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) Index: librtas-2.0.0/librtas_src/syscall_calls.c =================================================================== --- librtas-2.0.0.orig/librtas_src/syscall_calls.c +++ librtas-2.0.0/librtas_src/syscall_calls.c @@ -466,15 +466,20 @@ int rtas_errinjct_close(int otoken) */ int rtas_errinjct_open(int *otoken) { - __be32 be_otoken; + __be32 be_status; int rc, status; rc = sanity_check(); if (rc) return rc; - rc = rtas_call("ibm,open-errinjct", 0, 2, &be_otoken, &status); - *otoken = be32toh(be_otoken); + /* + * Unlike other RTAS calls, here first output parameter is otoken, + * not status. rtas_call converts otoken to host endianess. We + * have to convert status parameter. + */ + rc = rtas_call("ibm,open-errinjct", 0, 2, otoken, &be_status); + status = be32toh(be_status); dbg("(%p) = %d, %d\n", otoken, rc ? rc : status, *otoken); return rc ? rc : status;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor