[Xenomai] bad syscall <0x15b> on x86_64

Richard Weinberger richard.weinberger at gmail.com
Tue Jan 29 23:14:58 CET 2019


Hi!

When running a ia32 application on x86_64 I get bad syscall errors.
This happens with ipipe-core-4.14.89-x86-2.patch and xenomai 3.0.8.

The problem seems to be that both ipipe_handle_syscall() and
handle_head_syscall()
check for syscall-nr being >= NR_syscalls.
On ia32 the syscall table is larger and therefore the check is wrong.

So the code has to check the TS_COMPAT flag and then compare either to
NR_syscalls or IA32_NR_syscalls.
I gave this already a short try and things seem to work better.

-- 
Thanks,
//richard



More information about the Xenomai mailing list