Subject: Re: svr4_ucontext_t et al - usable?
To: Simon J. Gerraty <sjg@quick.com.au>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 02/10/1999 08:21:09
On Feb 10, 11:48pm, sjg@quick.com.au ("Simon J. Gerraty") wrote:
-- Subject: Re: svr4_ucontext_t et al - usable?

| Christos,
| >>I'm still running 1.3.x - I'd like the JDK to be able to run on
| >>that... mind you, 1.4 might be out before I finish this port :-)
| >>
| 
| >Someone is working to provide get and set context calls for native netbsd.
| >In the meantime, you can add the svr4 ones to kern/syscall.master...
| 
| Is there any way to call these svr4 syscalls without hacking the kernel?
| Eg via syscall() ?
| 
| I would prefer not to ship a jdk that needs a kernel hack or even 
| an lkm. But if that's the only way... 

You need an lkm, or some process that can read and write kmem :-)
 
| I guess I first need to see what {get,set}context do on a non-threaded
| system like NetBSD that setjmp,longjmp don't.  The *BSD JDK 1.x ports also 
| save the floating point state, perhaps that's all we need for now.

Well, that someone who is working on it, could commit it for the ports
that are ready, and the rest can return ENOSYS.

christos