Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc Fixed mistakes



details:   https://anonhg.NetBSD.org/src/rev/8d0de9fb39f6
branches:  trunk
changeset: 538793:8d0de9fb39f6
user:      manu <manu%NetBSD.org@localhost>
date:      Wed Oct 30 07:39:40 2002 +0000

description:
Fixed mistakes

diffstat:

 sys/arch/powerpc/powerpc/linux_syscall.c |  9 +++++++--
 sys/arch/powerpc/powerpc/syscall.c       |  4 ++--
 sys/arch/powerpc/powerpc/trap.c          |  5 ++++-
 3 files changed, 13 insertions(+), 5 deletions(-)

diffs (66 lines):

diff -r 52fb4d0baec4 -r 8d0de9fb39f6 sys/arch/powerpc/powerpc/linux_syscall.c
--- a/sys/arch/powerpc/powerpc/linux_syscall.c  Wed Oct 30 06:45:17 2002 +0000
+++ b/sys/arch/powerpc/powerpc/linux_syscall.c  Wed Oct 30 07:39:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_syscall.c,v 1.1 2002/10/30 06:37:38 manu Exp $ */
+/*     $NetBSD: linux_syscall.c,v 1.2 2002/10/30 07:39:40 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,13 +38,18 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.1 2002/10/30 06:37:38 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.2 2002/10/30 07:39:40 manu Exp $");
 
 #include <sys/param.h>
 #include <sys/signal.h>
 #include <sys/types.h>
 #include <sys/proc.h>
 
+#include <machine/frame.h>
+
+void syscall_fancy __P((struct trapframe *frame));
+void linux_syscall_intern __P((struct proc *p));
+
 void
 linux_syscall_intern(struct proc *p)
 {
diff -r 52fb4d0baec4 -r 8d0de9fb39f6 sys/arch/powerpc/powerpc/syscall.c
--- a/sys/arch/powerpc/powerpc/syscall.c        Wed Oct 30 06:45:17 2002 +0000
+++ b/sys/arch/powerpc/powerpc/syscall.c        Wed Oct 30 07:39:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.6 2002/10/30 06:41:45 manu Exp $ */
+/*     $NetBSD: syscall.c,v 1.7 2002/10/30 07:39:40 manu Exp $ */
 
 /*
  * Copyright (C) 2002 Matt Thomas
@@ -100,7 +100,7 @@
 
        code = frame->fixreg[0];
 
-#if MACH_SYSCALL
+#ifdef MACH_SYSCALL
        if (code < 0) {
 #ifdef DEBUG_MACH
                printf("->mach(%d)\n", code);
diff -r 52fb4d0baec4 -r 8d0de9fb39f6 sys/arch/powerpc/powerpc/trap.c
--- a/sys/arch/powerpc/powerpc/trap.c   Wed Oct 30 06:45:17 2002 +0000
+++ b/sys/arch/powerpc/powerpc/trap.c   Wed Oct 30 07:39:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.70 2002/10/30 06:37:38 manu Exp $   */
+/*     $NetBSD: trap.c,v 1.71 2002/10/30 07:39:40 manu Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -72,6 +72,9 @@
 int badaddr __P((void *, size_t));
 int badaddr_read __P((void *, size_t, int *));
 
+/* XXX Duplicated from syscall.c. Move it to a header file ? */
+#define FIRSTARG       3       /* first argument is in reg 3 */
+
 void
 child_return(void *arg)
 {



Home | Main Index | Thread Index | Old Index