On 24/10/17 17:02, Antti Kantee wrote:
syscall() isn't supported by rump kernels. First, I'd verify that syscall() is actually necessary, and can't be "compiled out" somehow. If necessary, you'd need to write an assembly stub which "harvests" the arguments to syscall() into memory, and passes that memory location to rump_syscall(). So, essentially your wrapper stub would be a generic version of the functions in rump_syscalls.c.
Actually, you might be able to implement syscall() in a machine-independent fashion using varargs and just shuffling SYS_MAXSYSARGS of the arguments. Anyway, still makes sense to first see if syscall() is even necessary for what you're doing.
