* Ptrace implementation
@ 2014-03-02 14:48 Erik Kooistra
2014-03-02 19:45 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Erik Kooistra @ 2014-03-02 14:48 UTC (permalink / raw)
To: sparclinux
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
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 #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 881 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Ptrace implementation
2014-03-02 14:48 Ptrace implementation Erik Kooistra
@ 2014-03-02 19:45 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-03-02 19:45 UTC (permalink / raw)
To: sparclinux
From: Erik Kooistra <me@erikkooistra.nl>
Date: Sun, 2 Mar 2014 15:48:09 +0100
> but from my tests it seems it is stored in G0.
%g0 is the "zero register, writes to it are ignored and all reads give
zero.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-02 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-02 14:48 Ptrace implementation Erik Kooistra
2014-03-02 19:45 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.