definition of _syscall - Minix

This is a discussion on definition of _syscall - Minix ; hi i was trying to trace the control flow when executing a system call now, the furthest i get are the assembly files in /usr/src/lib/posix once there, all the system calls call a function named _syscall but where is this ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: definition of _syscall

  1. definition of _syscall

    hi

    i was trying to trace the control flow when executing a system call
    now, the furthest i get are the assembly files in /usr/src/lib/posix
    once there, all the system calls call a function named _syscall
    but where is this file described? where does the actual "int SYSVEC"
    intruction take place?

    thanx,

    martin


  2. Re: definition of _syscall

    All,

    > i was trying to trace the control flow when executing a system call
    > now, the furthest i get are the assembly files in /usr/src/lib/posix
    > once there, all the system calls call a function named _syscall
    > but where is this file described? where does the actual "int SYSVEC"
    > intruction take place?


    The library functions call _syscall() in other/syscall.c, which does a
    _sendrec() to the server (FS or PM). It does some checks and sets errno
    if necessary.

    _sendrec() is defined in i386/rts/_ipc.s, which is also where the "int
    SYSVEC" happens.

    =Ben



+ Reply to Thread