[ECOS] i386 pc redboot_floppy compiling error and solution
Henry Zhu
zhu_henry@immenstar.com
Thu Jan 20 03:34:00 GMT 2005
Hi,
I checked out current eCos sources yesterday (01/18/2005).
Here are steps I did:
ecosconfig new pc redboot
ecosconfig import redboot_FLOPPY.ecm
ecosconfig tree
make 2>&1 | tee make.out
i386-elf-gcc complains:
current/src/main.c: In function `cyg_start':
current/src/main.c:397: invalid operands to binary &
current/src/main.c:397: warning: assignment makes pointer from integer
without a cast
current/src/main.c: In function `do_go':
current/src/main.c:598: invalid operands to binary &
current/src/main.c:598: warning: assignment makes pointer from integer
without a cast
Looking into the code, the definition of HAL_THREAD_INIT_CONTEXT seems
somehow broken.
register CYG_WORD* _sp_ = ((CYG_WORD*)((_sparg_) & ~15));
I changed this line to
register CYG_WORD* _sp_ = ((CYG_WORD*)(((unsigned int)_sparg_) &
~15));
Not sure this is right, but compiling passed. Floppy image looks just
working fine.
Henry
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list