This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Native file access under eCos synthetic


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]