[ECOS] Native file access under eCos synthetic

Andrew Lunn andrew.lunn@ascom.ch
Fri Dec 7 03:49:00 GMT 2001


> 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



More information about the Ecos-discuss mailing list