DragonFly BSD
DragonFly kernel List (threaded) for 2003-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Userapi, Reflection

From: Emiel Kollof <coolvibe@xxxxxxxxxxxxxxxx>
Date: Tue, 4 Nov 2003 15:29:26 +0100

* Lewis, Todd (todd.lewis@xxxxxx) wrote:
> Maybe I'm misunderstanding, I don't understand why code needs to be in the
> kernel.  Why not just, at run-time, link in the appropriate
> syscall-decoder/rewriter depending on the personality of the binary?  New
> syscalls for linux would just require updating
> /lib/libpersonality_linux.so...

I like this idea. The more we can push into userspace, the better.

> Also, Matt, when you're talking about 0x80 being a userspace interrupt,
> would that require rewriting the binary, valgrind-style, or is there some
> hardware trick that could be used, or is there some other way?  My
> understanding of x86 is that 0x80 always context-switches into the kernel,
> but I am a novice in such matters.

I don't think that apps need to be rewritten. int 0x80 can always be
hooked up to do something else (like figure out which syscall is called
from which personality, and then send the required dragonfly message).

Of course, IANAAH (asm hacker), so I could be completely wrong about


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]