Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 More sunos32 fallout.



details:   https://anonhg.NetBSD.org/src/rev/208003c169bf
branches:  trunk
changeset: 515284:208003c169bf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Sep 21 17:12:22 2001 +0000

description:
More sunos32 fallout.

diffstat:

 sys/arch/sparc64/sparc64/netbsd32_machdep.c |   4 +-
 sys/arch/sparc64/sparc64/sunos32_machdep.c  |  34 ++++++++++++++++++++++++++++-
 2 files changed, 35 insertions(+), 3 deletions(-)

diffs (94 lines):

diff -r a0c3a8a32b5f -r 208003c169bf sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c       Fri Sep 21 16:09:15 2001 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c       Fri Sep 21 17:12:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.17 2001/06/30 00:00:41 eeh Exp $        */
+/*     $NetBSD: netbsd32_machdep.c,v 1.18 2001/09/21 17:12:22 thorpej Exp $    */
 
 /*
  * Copyright (c) 1998 Matthew R. Green
@@ -57,7 +57,7 @@
 
 #include <dev/sun/event_var.h>
 
-int ev_out32 __P((struct firm_event *, int, struct uio *));
+static int ev_out32 __P((struct firm_event *, int, struct uio *));
 
 /*
  * Set up registers on exec.
diff -r a0c3a8a32b5f -r 208003c169bf sys/arch/sparc64/sparc64/sunos32_machdep.c
--- a/sys/arch/sparc64/sparc64/sunos32_machdep.c        Fri Sep 21 16:09:15 2001 +0000
+++ b/sys/arch/sparc64/sparc64/sunos32_machdep.c        Fri Sep 21 17:12:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos32_machdep.c,v 1.4 2001/09/20 20:52:26 thorpej Exp $      */
+/*     $NetBSD: sunos32_machdep.c,v 1.5 2001/09/21 17:12:22 thorpej Exp $      */
 /* from: NetBSD: sunos_machdep.c,v 1.14 2001/01/29 01:37:56 mrg Exp    */
 
 /*
@@ -34,6 +34,7 @@
 #endif
 
 #include <sys/param.h>
+#include <sys/exec.h>
 #include <sys/systm.h>
 #include <sys/proc.h>
 #include <sys/namei.h>
@@ -45,6 +46,7 @@
 #include <sys/signal.h>
 #include <sys/signalvar.h>
 #include <sys/malloc.h>
+#include <sys/select.h>
 
 #include <sys/syscallargs.h>
 #include <compat/sunos/sunos.h>
@@ -52,9 +54,14 @@
 #include <compat/netbsd32/netbsd32.h>
 #include <compat/sunos32/sunos32.h>
 #include <compat/sunos32/sunos32_syscallargs.h>
+#include <compat/sunos32/sunos32_exec.h>
 
 #include <machine/frame.h>
 #include <machine/cpu.h>
+#include <machine/vuid_event.h>
+#include <machine/reg.h>
+
+#include <dev/sun/event_var.h>
 
 #ifdef DEBUG
 #include <sparc64/sparc64/sigdebug.h>
@@ -80,6 +87,8 @@
        struct  sunos32_sigcontext sf_sc;       /* actual sigcontext */
 };
 
+static int ev_out32 __P((struct firm_event *, int, struct uio *));
+
 /*
  * Set up registers on exec.
  *
@@ -348,3 +357,26 @@
 
        return (EJUSTRETURN);
 }
+
+/*
+ * Write out a series of 32-bit firm_events.
+ */
+static int
+ev_out32(e, n, uio)
+       struct firm_event *e;  
+       int n;
+       struct uio *uio;
+{
+       struct firm_event32 e32;
+       int error = 0;
+
+       while (n-- && error == 0) {
+               e32.id = e->id;
+               e32.value = e->value;
+               e32.time.tv_sec = e->time.tv_sec;
+               e32.time.tv_usec = e->time.tv_usec;
+               error = uiomove((caddr_t)&e32, sizeof(e32), uio);
+               e++;
+       }
+       return (error);
+}



Home | Main Index | Thread Index | Old Index