diff --git a/lib/libc/arch/sh3/sys/syscall.S b/lib/libc/arch/sh3/sys/syscall.S index 89a2c62fd40e..979ef83a84ff 100644 --- a/lib/libc/arch/sh3/sys/syscall.S +++ b/lib/libc/arch/sh3/sys/syscall.S @@ -1,4 +1,4 @@ -/* $NetBSD: syscall.S,v 1.5 2003/08/07 16:42:21 agc Exp $ */ +/* $NetBSD: syscall.S,v 1.6 2006/01/06 01:27:23 uwe Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -36,32 +36,9 @@ #include #if defined(SYSLIBC_SCCS) && !defined(lint) - RCSID("$NetBSD: syscall.S,v 1.5 2003/08/07 16:42:21 agc Exp $") + RCSID("$NetBSD: syscall.S,v 1.6 2006/01/06 01:27:23 uwe Exp $") #endif /* SYSLIBC_SCCS and not lint */ #include "SYS.h" -ENTRY(syscall) - sts pr, r2 /* rta */ - mov.l Lsyscall, r0 /* syscall number */ - trapa #0x80 - bf err - rts - nop -err: - mov.l Lcerror, r1 -#ifdef PIC - braf r1 -#else - jmp @r1 -#endif - nop -1: - - .align 2 -#ifdef PIC -Lcerror: .long cerror-1b -#else -Lcerror: .long cerror -#endif -Lsyscall: .long SYS_syscall +RSYSCALL(syscall)