Ptrace implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am porting http://hetgrotebos.org/wiki/Tracy to sparc on linux. But i encounters some issues, If i read the sys call docs correctly the sycall number is stored in, G1, but from my tests it seems it is stored in G0.

Second, the syscall_restore function is not implemented, see http://lxr.free-electrons.com/source/arch/sparc/include/asm/syscall.h powerpc and x86/amd64 use a orig_ register. Maybe this is also a desirable solution for sparc ??

finally, i can't seem to find the result of the sys call in the registers. Powerpc has solved this by adding a result to the pt_regs struct, (the result should be in the o0 if i am correct).

(I am currently working on a sparc v100 with a TI UltraSparc IIe (Hummingbird))

Erik Kooistra

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux