sh4: Unsupported syscall: 186
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello!
I'm currently testing qemu as a possibility to set up a buildd for the Debian sh4 port.
I set up qemu and an sh4 chroot as described in the Debian Wiki [1]. This seems to be working mostly fine (besides the fact that qemu segfaults on an amd64 host while it runs fine on an i386 host, I'll file a separate bug report). However, when installing python3.4 in the sh4 chroot, qemu repeatedly printed an error message about an unimplemented syscall: 186:
qemu: Unsupported syscall: 186
From the source code in linux-user/
#define TARGET_
Looking at the implementation part, it becomes obvious that this syscall is not enabled for sh4:
#if defined(
defined(
defined(
ret = do_sigaltstack(
break;
#else
goto unimplemented;
#endif
Is there any particular reason why TARGET_
Thanks,
Adrian
I have enabled this syscall in the source code now and performing a test build and run and will report back.
Furthermore, looking at the kernel sources, both the 32-bit and 64-bit Linux SH-specific code defines "sigaltstack" as syscall 186:
> https:/ /github. com/torvalds/ linux/blob/ master/ arch/sh/ kernel/ syscalls_ 32.S#L205 /github. com/torvalds/ linux/blob/ master/ arch/sh/ kernel/ syscalls_ 64.S#L209
> https:/
The whole syscall also doesn't appear to be architecture- specific after reading the manpage for sigaltstack. Is it?
Will report back after further testing.
Thanks,
Adrian