syscall() has to be implemented in the kernel - so is a normal system call here.This has always been broken, so I suspect everything is using __syscall().

This commit is contained in:
dsl 2007-11-05 20:30:07 +00:00
parent c33e2714c5
commit bd8185f2eb

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscall.S,v 1.3 2003/08/07 16:42:38 agc Exp $ */
/* $NetBSD: syscall.S,v 1.4 2007/11/05 20:30:07 dsl Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -36,20 +36,9 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: syscall.S,v 1.3 2003/08/07 16:42:38 agc Exp $")
RCSID("$NetBSD: syscall.S,v 1.4 2007/11/05 20:30:07 dsl Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
ENTRY(syscall)
movl %edi,%eax
syscall
jc err
ret
err:
#ifdef PIC
movq PIC_GOT(CERROR), %rcx
jmp *%rcx
#else
jmp CERROR
#endif
RSYSCALL(syscall)