[Sparc] Wrong FpPipe syscall implementation
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
FpPipe(TFilDes) does not return the filedesciptors in the TFilDes structure.
When looking at the FpPipe implementation, the TFilDes structure is passed as param to the syscall. However when looking at the implemnetation in sys_sparc.c it seems that the descriptors are returned as registers.
Verified by debuging the call, the result is passed back in %o0 and %o1.
%o0 is used in FpPipe as result. When writing the result of FpPipe, one can see an increasing result whch looks pretty much as a filedescriptor.
Additional information:
Reporter: Marc Weustink
EMail: marc at freepascal dot org
Mantis conversion info:
- Mantis ID: 5683
- OS: Linux
- Version: 1.9.8
- Fixed in version: 1.9.9