This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Fwd: Re: trying to get a feel for Ecos ...
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Philippe Moutarlier <Philippe dot Moutarlier at attbi dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 14 Feb 2003 02:37:24 +0000
- Subject: Re: [ECOS] Fwd: Re: [ECOS] trying to get a feel for Ecos ...
- References: <200302131629.03746.Philippe.Moutarlier@attbi.com>
Philippe Moutarlier wrote:
I could get redboot to go. Now I am trying to build the simple "basic" example
of the book.
- opened i386 PC/default target
- startup type = RAM
- Use RedBoot Monitor = GDB stubs
Saved in the build tree , compile and there it seems that all the registers
(EAX ...) are undefined. I checked that the file
ecos_install/include/cyg/hal/i386_stub.h:
is installed in the build tree.
Anything else I should check ?
I think I've worked it out. hal_syscall.c includes plf_stub.h which only
includes i386_stub.h if CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS is defined. The
code in hal_syscall.c only gets included if CYGSEM_REDBOOT_BSP_SYSCALLS
which should only be enabled if this is redboot. The fact it's trying to
build it when CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS is evidently _not_
defined makes me think you are reusing the same build tree between
building redboot and building an eCos application. RedBoot has its own
reqwuirements of eCos - your application will need different requirements
and so a different configuration tree.
So just start with the default config in a clean empty build tree and you
should be fine.
Jifl
make[1]: Entering directory
`/home/philippe/ecos_build/ecos_build/hal/i386/arch/current'
i386-elf-gcc -c -I/home/philippe/ecos_build/ecos_install/include
-I/home/philippe/ecos/ecos/packages/hal/i386/arch/current
-I/home/philippe/ecos/ecos/packages/hal/i386/arch/current/src
-I/home/philippe/ecos/ecos/packages/hal/i386/arch/current/tests -I.
-I/home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/ -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g
-O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority -Wp,-MD,src/hal_syscall.tmp -o
src/hal_i386_arch_hal_syscall.o
/home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/hal_syscall.c
/home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/hal_syscall.c: In
function `hal_syscall_handler':
/home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:113:
warning: implicit declaration of function `get_register'
/home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:113:
`EAX' undeclared (first use in this function)
[snip rest ]
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss