head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.50 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.48 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.46 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.44 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.42 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.40 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.38 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.36 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.34 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.32 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.30 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.28 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.26 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.24 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.22 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.20 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.18 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.16 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.14 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.12 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.10 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.8 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.6 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.4 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.2 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.3.0.12 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.10 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.6 netbsd-1-6-1-base:1.3 netbsd-1-6:1.3.0.8 netbsd-1-6-RELEASE-base:1.3 pkgviews:1.3.0.4 pkgviews-base:1.3 buildlink2:1.3.0.2 buildlink2-base:1.3 netbsd-1-5-PATCH003:1.3 netbsd-1-5-PATCH001:1.3 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1; locks; strict; comment @# @; 1.4 date 2004.06.01.21.39.20; author kristerw; state dead; branches; next 1.3; 1.3 date 2001.04.19.13.28.49; author wiz; state Exp; branches; next 1.2; 1.2 date 2001.04.12.07.14.58; author skrll; state Exp; branches; next 1.1; 1.1 date 98.12.28.22.22.02; author bad; state Exp; branches; next ; desc @@ 1.4 log @Remove obsolete packages, per discussion on tech-pkg. @ text @$NetBSD: patch-au,v 1.3 2001/04/19 13:28:49 wiz Exp $ --- machdep/syscall-sparc-netbsd-1.3.S.orig Thu Apr 12 06:57:19 2001 +++ machdep/syscall-sparc-netbsd-1.3.S Thu Apr 12 07:15:26 2001 @@@@ -0,0 +1,172 @@@@ +/* ==== syscall.S ============================================================ + * Copyright (c) 1994 Chris Provenzano, proven@@mit.edu + * All rights reserved. + * + */ + +#ifndef lint + .text + .asciz "$Id: patch-au,v 1.3 2001/04/19 13:28:49 wiz Exp $"; +#endif + +#include +#include + +#define SYSCALL(x) \ + .globl _C_LABEL(machdep_sys_##x); \ + \ +_C_LABEL(machdep_sys_##x):; \ + \ + mov SYS_##x, %g1; \ + ta 0; \ + bcs,a 2b; \ + sub %r0,%o0,%o0; \ + retl + + +/* + * Initial asm stuff for all functions. + */ + .text + .align 4 + +/* ========================================================================== + * error code for all syscalls. The error value is returned as the negative + * of the errno value. + */ + +1: + sub %r0, %o0, %o0 +2: + retl + nop + +/* ========================================================================== + * machdep_sys_pipe() + */ + .globl _C_LABEL(machdep_sys_pipe) + +_C_LABEL(machdep_sys_pipe): + mov %o0, %o2 + mov SYS_pipe, %g1 + ta 0 + bcs 1b + nop + st %o0, [ %o2 ] + st %o1, [ %o2 + 4 ] + retl + mov %g0, %o0 + +/* ========================================================================== + * machdep_sys_fork() + */ + .globl _C_LABEL(machdep_sys_fork); + +_C_LABEL(machdep_sys_fork):; + + mov SYS_fork, %g1; + ta 0; + bcs 1b; + nop; + dec %o1; + retl; + and %o0, %o1, %o0; ! return 0 in child, pid in parent + +#ifndef SYS___sigprocmask14 +/* ========================================================================== + * machdep_sys_sigprocmask() + */ + .globl _C_LABEL(machdep_sys_sigprocmask); + +_C_LABEL(machdep_sys_sigprocmask):; + + ld [%o1], %o1; + mov SYS_sigprocmask, %g1; + ta 0; + bcs 1b; + nop; + retl + nop +#endif + +#ifndef SYS___sigsuspend14 +/* ========================================================================== + * machdep_sys_sigsuspend() + */ + .globl _C_LABEL(machdep_sys_sigsuspend); + +_C_LABEL(machdep_sys_sigsuspend):; + + ld [%o0], %o0; + mov SYS_sigsuspend, %g1; + ta 0; + bcs 1b; + nop; + retl + nop +#endif + +/* ========================================================================== + * machdep_sys_fstat() + */ + .globl _C_LABEL(machdep_sys_fstat); + +_C_LABEL(machdep_sys_fstat):; + + mov SYS___fstat13, %g1; + ta 0; + bcs 1b; + nop; + retl + nop + +/* ========================================================================== + * machdep_sys___syscall() + */ +_C_LABEL(machdep_sys___syscall):; + + mov SYS___syscall, %g1; + ta 0; + bcs 1b; + nop; + retl + nop + +/* ========================================================================== + * machdep_sys_lseek() + */ + .global _C_LABEL(machdep_sys_lseek) + +_C_LABEL(machdep_sys_lseek): + save %sp,-112,%sp + mov %i1,%o4 + mov %i2,%o5 + st %i3,[%sp+92] + mov 0,%o0 + mov SYS_lseek,%o1 + mov %i0,%o2 + call _C_LABEL(machdep_sys___syscall),0 + mov 0,%o3 + mov %o0,%i0 + mov %o1,%i1 + ret + restore + +/* ========================================================================== + * machdep_sys_ftruncate() + */ + .global _C_LABEL(machdep_sys_ftruncate) + +_C_LABEL(machdep_sys_ftruncate): + save %sp,-104,%sp + mov %i1,%o4 + mov %i2,%o5 + mov 0,%o0 + mov SYS_ftruncate,%o1 + mov %i0,%o2 + call _C_LABEL(machdep_sys___syscall),0 + mov 0,%o3 + mov %o0,%o1 + sra %o0,31,%o0 + ret + restore %g0,%o1,%o0 @ 1.3 log @Add RCS Ids. @ text @d1 1 a1 1 $NetBSD$ d13 1 a13 1 + .asciz "$Id: patch-au,v 1.2 2001/04/12 07:14:58 skrll Exp $"; @ 1.2 log @Add _C_LABEL to the sparc assembler files. Fixes pkg/11360. @ text @d1 1 d13 1 a13 1 + .asciz "$Id: patch-au,v 1.1 1998/12/28 22:22:02 bad Exp $"; @ 1.1 log @Make this work on alpha, arm32, i386, and sparc on 1.3 and up. @ text @d1 3 a3 5 $NetBSD: patch-ar,v 1.1 1998/10/28 18:18:09 bad Exp $ --- /dev/null Sun Oct 25 03:17:31 1998 +++ machdep/syscall-sparc-netbsd-1.3.S Sat Oct 24 21:39:15 1998 @@@@ -0,0 +1,171 @@@@ d12 1 a12 1 + .asciz "$Id: patch-ar,v 1.1 1998/10/28 18:18:09 bad Exp $"; d15 1 d19 1 a19 1 + .globl _machdep_sys_##x; \ d21 1 a21 1 +_machdep_sys_##x:; \ d50 1 a50 1 + .globl _machdep_sys_pipe d52 1 a52 1 +_machdep_sys_pipe: d66 1 a66 1 + .globl _machdep_sys_fork; d68 1 a68 1 +_machdep_sys_fork:; d82 1 a82 1 + .globl _machdep_sys_sigprocmask; d84 1 a84 1 +_machdep_sys_sigprocmask:; d99 1 a99 1 + .globl _machdep_sys_sigsuspend; d101 1 a101 1 +_machdep_sys_sigsuspend:; d115 1 a115 1 + .globl _machdep_sys_fstat; d117 1 a117 1 +_machdep_sys_fstat:; d129 1 a129 1 +_machdep_sys___syscall:; d141 1 a141 1 + .global _machdep_sys_lseek d143 1 a143 1 +_machdep_sys_lseek: d151 1 a151 1 + call _machdep_sys___syscall,0 d161 1 a161 1 + .global _machdep_sys_ftruncate d163 1 a163 1 +_machdep_sys_ftruncate: d170 1 a170 1 + call _machdep_sys___syscall,0 @