Repair syscall stubs that were not updated when the cerror interface was

modified.
This commit is contained in:
mycroft 2000-04-03 03:13:07 +00:00
parent 07f0b2299b
commit 7f7027bb59
7 changed files with 35 additions and 25 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: brk.S,v 1.12 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: brk.S,v 1.13 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: brk.S,v 1.12 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: brk.S,v 1.13 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -76,10 +76,10 @@ ENTRY(brk)
ret
err:
PIC_PROLOGUE
jmp PIC_PLT(CERROR)
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
movl 4(%esp),%ecx
cmpl %ecx,_C_LABEL(__minbrk)
jl 1f

View File

@ -1,4 +1,4 @@
/* $NetBSD: exect.S,v 1.9 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: exect.S,v 1.10 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: exect.S,v 1.9 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: exect.S,v 1.10 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -56,7 +56,9 @@ ENTRY(exect)
int $0x80
#ifdef PIC
PIC_PROLOGUE
jmp PIC_PLT(CERROR) /* exect(file, argv, env); */
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
jmp CERROR
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptrace.S,v 1.11 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: ptrace.S,v 1.12 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: ptrace.S,v 1.11 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: ptrace.S,v 1.12 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -80,7 +80,9 @@ ENTRY(ptrace)
err:
#ifdef PIC
PIC_PROLOGUE
jmp PIC_PLT(CERROR)
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
jmp CERROR
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbrk.S,v 1.10 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: sbrk.S,v 1.11 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: sbrk.S,v 1.10 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: sbrk.S,v 1.11 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -71,10 +71,10 @@ ENTRY(sbrk)
ret
err:
PIC_PROLOGUE
jmp PIC_PLT(CERROR)
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
movl 4(%esp),%ecx
movl CURBRK,%eax
addl %eax,4(%esp)

View File

@ -1,4 +1,4 @@
/* $NetBSD: sigprocmask.S,v 1.13 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: sigprocmask.S,v 1.14 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: sigprocmask.S,v 1.13 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: sigprocmask.S,v 1.14 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -70,7 +70,9 @@ out:
err:
#ifdef PIC
PIC_PROLOGUE
jmp PIC_PLT(CERROR)
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
jmp CERROR
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: sigsuspend.S,v 1.11 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: sigsuspend.S,v 1.12 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: sigsuspend.S,v 1.11 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: sigsuspend.S,v 1.12 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -60,7 +60,9 @@ ENTRY(sigsuspend)
err:
#ifdef PIC
PIC_PROLOGUE
jmp PIC_PLT(CERROR)
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
jmp CERROR
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscall.S,v 1.8 1999/02/08 18:56:48 christos Exp $ */
/* $NetBSD: syscall.S,v 1.9 2000/04/03 03:13:07 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: syscall.S,v 1.8 1999/02/08 18:56:48 christos Exp $")
RCSID("$NetBSD: syscall.S,v 1.9 2000/04/03 03:13:07 mycroft Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
@ -56,7 +56,9 @@ ENTRY(syscall)
err:
#ifdef PIC
PIC_PROLOGUE
jmp PIC_PLT(CERROR)
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp %ecx
#else
jmp CERROR
#endif