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: Interprocess communication


Andrew Lunn wrote:

>What exactly did you add? In the Linux sources there is this comment
>near the shmget system call code...
>
>linux/arch/i386/kernel/sys_i386.c
>/*
> * sys_ipc() is the de-multiplexer for the SysV IPC calls..
> *
> * This is really horribly ugly.
> */
>
>Have you correctly dealt with this ugliness.
>
>     Andrew
>
I modified the next file:    syscall-i386-linux-1.0.S
adding the entry for shmget function, as follows:

         .
         .
#ifndef _SYS_SYSCALL_H
#define _SYS_SYSCALL_H

#define SYS_setup               0 // Used only by init, to get system going.
#define SYS_exit                1
#define SYS_fork                2
#define SYS_read                3
#define SYS_write               4
#define SYS_open                5
         .
         .
         .
#define SYS_nanosleep    162
#define SYS_mremap      163
#define SYS_shmget        164  /***    I added this line    ***/

#endif  // <sys/syscall.h>
         .
         .

I found this file at: 
/opt/ecos/ecos-1.3.1/packages/hal/i386/linux/v1_3_1/src
But as I said you before, I tried to use another system calls from this 
list, and the
compiler also send a similar output.

Please let me know if this is the right file I need to modify,  or what 
I need to do in
order to invoke any system call.

Thanks

-- 
Alfredo Carrillo
alcarrillo@tec.com.mx




-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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