Subversion Repositories HelenOS-historic

Rev

Rev 499 | Rev 505 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 499 Rev 504
Line 26... Line 26...
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <libc.h>
29
#include <libc.h>
30
 
30
 
31
void __syscall(const unsigned int id, const unsigned int p1, const unsigned int p2, const unsigned int p3)
31
unsigned int __syscall(const syscall_t id, const unsigned int p1, const unsigned int p2, const unsigned int p3)
32
{
32
{
-
 
33
    unsigned int ret;
33
 
34
   
-
 
35
    asm volatile (
-
 
36
        "int $0x80\n"
-
 
37
        : "=a" (ret)
-
 
38
        : "a" (id),
-
 
39
          "b" (p1),
-
 
40
          "c" (p2),
-
 
41
          "d" (p3)
-
 
42
    );
-
 
43
   
-
 
44
    return ret;
34
}
45
}