Subject: Re: process_machdep.c
To: Mark Brinicombe <mark@causality.com>
From: Patrick Welche <prlw1@cam.ac.uk>
List: port-arm32
Date: 02/22/1998 18:24:41
Patrick Welche wrote:
>
> The thing is arm_fpe_{get,set}context is defined in
> src/sys/arch/arm32/fpe-arm/armfpe.h
> which isn't included in
> src/sys/arch/arm32/arm32/process_machdep.c
> (nor any of its includes)
> so would a
>
> #ifdef ARMFPE
> #include "../fpe-arm/armfpe.h
> #endif
>
> be in order in process_machdep.c ?
>
> [Time passes]
>
> Nope: armfpe.h 109,110 syntax error before `*'
> .. process_machdep.c: 123,163: warning: passing arg 2 of
> `arm_fpe_{get,set}context' from incompatible type
>
> But I can't see one:
> armfpe.h:
> void arm_fpe_{get,set}context __P((struct proc *p, fp_reg_t *fpregs));
>
> fp_reg_t is defined in <machine/fp.h> which is included by armfpe.h
>
> Any thoughts?
Just had one...
in process_machdep.c:
arm_fpe_{get,set}context ( struct proc *p, struct fpreg *pregs )
so, fp_reg_t != fpreg ? Now I give up.
Cheers,
Patrick