Svante Signell, le mar. 30 nov. 2021 11:27:09 +0100, a ecrit: > On Mon, 2021-11-29 at 22:19 +0100, Samuel Thibault wrote: > > > Seems like one have to make a suitable mix of linux and darwin code > > > (and to some extent freebsd/solaris code). > > > > Also it'd need a fair amount of code to reimplement the basic posixish > > needs of valgrind in terms of the Hurd RPCs. > > Do you mean that Darwin does not use RPCs?
I don't know, but for sure its set of RPCs will have nothing to do with the Hurd set of RPCs. > > > movl $$__NR___pthread_sigmask, %eax > > > int $$0x80 /* should be sysenter? */ > > > jc L_$0_7 /* __pthread_sigmask failed */ > > > Mach doesn't use int 0x80 but an lcall. See for instance > > glibc/sysdeps/mach/i386/syscall.S > > Can't 0x80 just be replaced by lcall? Possibly, but also the calling convention needs to be fixed for passing parameters etc. Samuel