|
Saving sparc registers before longjump (was: Re: Re: netbsd compilation fai: msg#00138java.vm.kaffe.general
Ciao Riccardo, Riccardo wrote: In <3FBD0901.9050307@xxxxxxxxx> Dalibor Topic wrote: Judging by the build log Riccardo sent me, there may be some problem with the exception frame register being clobbered in jni call. [snip] ../../../kaffe/kaffe/kaffevm/jni.c: In function `Kaffe_NewGlobalRef': ../../../kaffe/kaffe/kaffevm/jni.c:313: warning: variable `ef' might be clobbered by `longjmp' or `vfork' ../../../kaffe/kaffe/kaffevm/jni.c: In function `Kaffe_DefineClass': ../../../kaffe/kaffe/kaffevm/jni.c:341: warning: variable `ef' might be clobbered by `longjmp' or `vfork' [snip ... as it goes on like this for any jni function] ef is defined in config/sparc/jit.h: register exceptionFrame* ef asm("%sp"); \ So I'm wondering if saving the register before the sepjump/longjump magic would do the trick. The only problem is that I don't know how to do it, as I haven't programmed GCC assembler yet (not sparc assembler in particular). Could someone who's speaks sparc/gcc assembler jump in and provide a patch or point me to relevant information on how to patch this? cheers, dalibor topic
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: CVS kaffe (guilhem): Fixed the <applet> parsing., Guilhem Lavaux |
|---|---|
| Next by Date: | Re: Re: [Cp-tools-discuss] How to run gjdoc with kaffe, Dalibor Topic |
| Previous by Thread: | Re: netbsd compilation fails, Riccardo |
| Next by Thread: | Compile Kaffe for powerpc on linux(i386), L J |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |