[kaffe] Loading stops after 2 classes

Guilhem Lavaux guilhem at kaffe.org
Fri Jun 25 04:13:49 PDT 2004


Helmer Krämer wrote:
> On Thu, 24 Jun 2004 13:26:38 +0200
> Fabien Renaud <renaud at nentec.de> wrote:
> 
> 
>> #include "sigcontextinfo.h"
>>+
>>+#define	SIGNAL_ARGS(sig, ctx) \
>>+	int sig, SIGCONTEXT ctx
> 
> 
> That's not quite correct. On ARM, the first four parameters are
> passed in registers, and the others are passed on the stack.
> Since the SIGCONTEXT struct is passed on the stack, the macro
> should read something like
> 

Hi Helmer,

Yes but SIGCONTEXT is defined as

#define SIGCONTEXT int _a2, int _a3, int _a4, union k_sigcontext

so it should be equivalent, isn't it ?

Cheers,

Guilhem.

> #define SIGNAL_ARGS(sig, ctx) \
> 	int sig, int arm_r2, int arm_r3, int arm_r4, SIGCONTEXT ctx
> 
> Regards,
> Helmer
> 





More information about the kaffe mailing list