Source-Changes-HG archive

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

[src/trunk]: src/lib various ia64 updates:



details:   https://anonhg.NetBSD.org/src/rev/ff1c057107f0
branches:  trunk
changeset: 346181:ff1c057107f0
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jun 30 09:14:30 2016 +0000

description:
various ia64 updates:
- add a compat vfork because of stupid
- add a weak sbrk
- add a shmat syscall
- add an empty kvm implementation that links
- add missing fp stuff

diffstat:

 lib/libc/arch/ia64/gen/Makefile.inc           |   9 ++-
 lib/libc/arch/ia64/sys/sbrk.S                 |   6 +-
 lib/libc/arch/ia64/sys/shmat.S                |   8 +-
 lib/libc/compat/arch/ia64/sys/Makefile.inc    |   4 +-
 lib/libc/compat/arch/ia64/sys/compat_Ovfork.S |   9 +++
 lib/libkvm/kvm_ia64.c                         |  79 +++++++++++++++++++++++++++
 6 files changed, 107 insertions(+), 8 deletions(-)

diffs (159 lines):

diff -r e1590c3a2240 -r ff1c057107f0 lib/libc/arch/ia64/gen/Makefile.inc
--- a/lib/libc/arch/ia64/gen/Makefile.inc       Thu Jun 30 09:06:35 2016 +0000
+++ b/lib/libc/arch/ia64/gen/Makefile.inc       Thu Jun 30 09:14:30 2016 +0000
@@ -1,10 +1,15 @@
-#      $NetBSD: Makefile.inc,v 1.6 2015/04/17 12:51:05 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2016/06/30 09:14:30 mrg Exp $
 
 SRCS+= _lwp.c
 SRCS+= bswap16.c bswap32.c bswap64.c
 SRCS+= setjmp.S _setjmp.S sigsetjmp.S
 SRCS+= flt_rounds.c fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c
+
+# Common ieee754 constants and functions
+SRCS+= infinityf_ieee754.c infinity_ieee754.c infinityl_dbl_ieee754.c
+SRCS+= fpclassifyf_ieee754.c fpclassifyd_ieee754.c
+SRCS+= isfinitef_ieee754.c isfinited_ieee754.c
 SRCS+= isinff_ieee754.c isinfd_ieee754.c
 SRCS+= isnanf_ieee754.c isnand_ieee754.c
-SRCS+= fpclassifyf_ieee754.c fpclassifyd_ieee754.c
+SRCS+= signbitf_ieee754.c signbitd_ieee754.c
 
diff -r e1590c3a2240 -r ff1c057107f0 lib/libc/arch/ia64/sys/sbrk.S
--- a/lib/libc/arch/ia64/sys/sbrk.S     Thu Jun 30 09:06:35 2016 +0000
+++ b/lib/libc/arch/ia64/sys/sbrk.S     Thu Jun 30 09:14:30 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbrk.S,v 1.2 2006/09/23 17:39:34 cherry Exp $  */
+/*     $NetBSD: sbrk.S,v 1.3 2016/06/30 09:14:30 mrg Exp $     */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -34,6 +34,10 @@
 
        .globl  _end
 
+#ifdef WEAK_ALIAS
+WEAK_ALIAS(sbrk, _sbrk)
+#endif
+
        .data
 EXPORT(__curbrk)
        .quad   _end
diff -r e1590c3a2240 -r ff1c057107f0 lib/libc/arch/ia64/sys/shmat.S
--- a/lib/libc/arch/ia64/sys/shmat.S    Thu Jun 30 09:06:35 2016 +0000
+++ b/lib/libc/arch/ia64/sys/shmat.S    Thu Jun 30 09:14:30 2016 +0000
@@ -1,3 +1,5 @@
-/* $NetBSD: shmat.S,v 1.1 2006/09/10 21:22:34 cherry Exp $ */
-       
-/* XXX:         Stub */
\ No newline at end of file
+/*     $NetBSD: shmat.S,v 1.2 2016/06/30 09:14:30 mrg Exp $    */
+
+#include "SYS.h"
+
+RSYSCALL(shmat)
diff -r e1590c3a2240 -r ff1c057107f0 lib/libc/compat/arch/ia64/sys/Makefile.inc
--- a/lib/libc/compat/arch/ia64/sys/Makefile.inc        Thu Jun 30 09:06:35 2016 +0000
+++ b/lib/libc/compat/arch/ia64/sys/Makefile.inc        Thu Jun 30 09:14:30 2016 +0000
@@ -1,3 +1,3 @@
-# $NetBSD: Makefile.inc,v 1.2 2011/03/06 17:08:13 bouyer Exp $
+# $NetBSD: Makefile.inc,v 1.3 2016/06/30 09:14:30 mrg Exp $
 
-SRCS+= compat___semctl.S compat_quotactl.S
+SRCS+= compat_Ovfork.S compat___semctl.S compat_quotactl.S
diff -r e1590c3a2240 -r ff1c057107f0 lib/libc/compat/arch/ia64/sys/compat_Ovfork.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/arch/ia64/sys/compat_Ovfork.S     Thu Jun 30 09:14:30 2016 +0000
@@ -0,0 +1,9 @@
+/* $NetBSD: compat_Ovfork.S,v 1.1 2016/06/30 09:14:30 mrg Exp $ */
+
+#include "SYS.h"
+
+/* XXX should not be necessary or useful, no NetBSD/ia64 1.4 */
+SYSCALL(vfork)
+       /* XXX: watchout for return values for child/parent */ 
+       RET
+END(vfork)     
diff -r e1590c3a2240 -r ff1c057107f0 lib/libkvm/kvm_ia64.c
--- a/lib/libkvm/kvm_ia64.c     Thu Jun 30 09:06:35 2016 +0000
+++ b/lib/libkvm/kvm_ia64.c     Thu Jun 30 09:14:30 2016 +0000
@@ -0,0 +1,79 @@
+/*     $NetBSD: kvm_ia64.c,v 1.2 2016/06/30 09:14:30 mrg Exp $ */
+
+/*
+ * Copyright (c) 2016 Matthew R. Green
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+/* Empty implementation */
+
+#include <sys/param.h>
+
+#include <limits.h>
+#include <kvm.h>
+
+#include <uvm/uvm_extern.h>
+
+#include "kvm_private.h"
+
+
+void
+_kvm_freevtop(kvm_t *kd)
+{
+
+}
+
+int
+_kvm_initvtop(kvm_t *kd)
+{
+
+       _kvm_err(kd, 0, "initvtop not yet implemented!");
+       return (0);
+}
+
+int
+_kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
+{
+
+       _kvm_err(kd, 0, "vatop not yet implemented!");
+       return -1;
+}
+
+off_t
+_kvm_pa2off(kvm_t *kd, paddr_t pa)
+{
+
+       _kvm_err(kd, 0, "pa2off not yet implemented!");
+       return -1;
+}
+
+int
+_kvm_mdopen(kvm_t *kd)
+{
+
+       _kvm_err(kd, 0, "mdopen not yet implemented!");
+       return -1;
+}



Home | Main Index | Thread Index | Old Index