Re: task_ops?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 6 Jan 1998 20:42:53 +0000 (GMT)


> I'm making something like a binary emulator which will execute
> assembly instructions in user space, but handle signals and syscalls
> differently than other native Linux tasks.

You dont need any kernel support for this. You can redirect signal handlers
to your own routines which fake the desired result and any lcall or trap
isntructions will generate a SIGILL which you can trap in user space
and emulate

> sure. entry.S has entries for both lcall7 and syscall. There's only
> one lcall7 function defined in the kernel, and that sends SEGV.

The ibcs personality has its own lcall7 handler if you have the ibcs
module loaded.