[kaffe] StrongARM problems

Dalibor Topic robilad at kaffe.org
Thu Jun 17 10:50:11 PDT 2004


Guilhem Lavaux wrote:
> 
>>
>> Hello,
> 
> 
> Hi Fabien,
> 
>>
>> Me too I cannot compile HEAD, I have the same errors.
>>
> 
> Dalibor was on the track for this bug but I don't know what he is doing 
> now about it. But here is the right fix I think...

I think the problem comes from libc's internal structure  (k-sigcontext) 
and the kernel includes disagreeing on the sigonctext struct's contents. 
libc uses a union of sigcontext structs (v20, v21) to be able to extract 
the 'right' sigcontextinfo from the kernel sigcontext. Of course, as the 
kernel sigcontext does not really have such a union inside the struct, 
things break when we pass sigcontext as a k_sigcontext.

I think the right way to fix that is to find out what sigcontext struct 
looked like on 2.0 kernels for arm, and to check what it looks like on 
current arm kernels, to add a configure.ac check for some struct element 
that's only present in one of them, and to use that to fix our 
sigcontextinfo.h to remove the v2x union ideantifiers to access the 
right struct elements when the above mentioned struct element is present 
or not.

I have to start downloading some kernels, I guess ;)

cheers,
dalibor topic




More information about the kaffe mailing list