This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Native file access under eCos synthetic
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Dominique Henry de Villeneuve <d dot devilleneuve at ri dot silicomp dot fr>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 7 Dec 2001 12:49:03 +0100
- Subject: Re: [ECOS] Native file access under eCos synthetic
- References: <3BF4ED44.3ABEB31E@ri.silicomp.fr> <20011116114549.Q16434@biferten.ma.tech.ascom.ch> <3C10A484.88D4C991@ri.silicomp.fr>
> I call for that cyg_hal_sys_getcwd() declared in <cyg/hal/hal_io.h>:
> externC char * cyg_hal_sys_getcwd(char * buf, size_t size);
You need to add the assembly language this implements this
function. The assembly needs to put the parameters onto the stack, do
the trap and then cleanup.
There are macros to do all the work. Look in
/packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S
getcwd seems to take two parameters, so you probably need....
SYSCALL2(getcwd)
Andrew