This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
fpstate error in hal_arch.h - pc target
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] fpstate error in hal_arch.h - pc target
- From: "Richard Chan" <rchan00 at hotmail dot com>
- Date: Mon, 09 Jul 2001 02:00:14 +0800
- Reply-To: CShihPin at dso dot org dot sg
Hi, if I configure to build a pc target
ecosconfig new pc
ecosconfig tree
make
I get an error (see below) - the macro
references fpstate as follows and indeed the __regs
variable doesn't have fpstate as a member.
I think the fix is
(__regs)->fpucontext.fpstate (Correct no?)
If I define CYGHWR_HAL_I386_FPU_SWITCH_LAZY to get
the other version of HAL_THREAD_INIT_FPU_CONTEXT then
all is well.
HAL_THREAD_INIT_FPU_CONTEXT( __regs, __fpspace )
(sizeof((__regs)->fpstate)/sizeof(cyg_uint32)); __i++ ) \
(__regs)->fpstate[__i] = 0;
In file included from
/d1/opt/src/richard/ew1/install/include/cyg/kernel/sched.inl:56,
from
/opt/cvs/ecos/ecos/packages/infra/current/src/startup.cxx:62:
/d1/opt/src/richard/ew1/install/include/cyg/kernel/thread.inl: In member
function `void Cyg_HardwareThread::init_context(Cyg_Thread*)':
/d1/opt/src/richard/ew1/install/include/cyg/kernel/thread.inl:285: `struct
HAL_SavedRegisters' has no member named `fpstate_valid'
/d1/opt/src/richard/ew1/install/include/cyg/kernel/thread.inl:285: `struct
HAL_SavedRegisters' has no member named `fpstate'
/d1/opt/src/richard/ew1/install/include/cyg/kernel/thread.inl:285: `struct
HAL_SavedRegisters' has no member named `fpstate'
make[1]: *** [src/startup.o.d] Error 1
make[1]: Leaving directory `/d1/opt/src/richard/ew1/infra/current'
make: *** [build] Error 2
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.