|
From: Logan G. <log...@gm...> - 2006-01-12 20:56:16
|
I think your patch will work -- I added code to do a specific check for -7002 and post a 0 byte memory write and that has worked around the issue. The reason the read is returning a -7002 is the (custom) hardware driver was written to return -7002 as a status value in a certain condition. A more standard way would have been to write to the third ioctl param but that was not done =3D). Thanks a lot for the help I can continue to debug my application now =3D) On 1/12/06, Julian Seward <js...@ac...> wrote: > > > =3D=3D1319=3D=3D Warning: set address range perms: large range 21474766= 46, a 0, v 0 > > Yeh. That's because I suggested the wrong thing. RES is the result of > the syscall (-7002) and the POST_MEM_WRITE is calling set_address_range_p= erms. > > What I should have said is - try the absolute value of RES: > > ( ((Int)RES) < 0 : -(RES) : (RES) ) > > > > Yes that is correct, The system call is returning -7002 in one > > > condition.... and -7001 in a different condition. > > Nevertheless I don't understand how read() can succeed and return a > negative value. > > J > -- Thanks; Logan Gabriel. |