This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
i386 pc redboot_floppy compiling error and solution
- From: "Henry Zhu" <zhu_henry at immenstar dot com>
- To: "ECOS Discussion List" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 19 Jan 2005 18:21:32 -0800
- Subject: [ECOS] i386 pc redboot_floppy compiling error and solution
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