Module Name:src
Committed By: kiyohara
Date: Mon Jul 20 11:23:04 UTC 2009
Modified Files:
src/sys/lib/libkern/arch/ia64: Makefile.inc
Added Files:
src/sys/lib/libkern/arch/ia64: bswap64.S byte_swap_8.S
Log Message:
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/lib/libkern/arch/ia64/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/sys/lib/libkern/arch/ia64/bswap64.S \
src/sys/lib/libkern/arch/ia64/byte_swap_8.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libkern/arch/ia64/Makefile.inc
diff -u src/sys/lib/libkern/arch/ia64/Makefile.inc:1.1 src/sys/lib/libkern/arch/ia64/Makefile.inc:1.2
--- src/sys/lib/libkern/arch/ia64/Makefile.inc:1.1 Fri Apr 7 13:57:43 2006
+++ src/sys/lib/libkern/arch/ia64/Makefile.inc Mon Jul 20 11:23:04 2009
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2006/04/07 13:57:43 cherry Exp $
+# $NetBSD: Makefile.inc,v 1.2 2009/07/20 11:23:04 kiyohara Exp $
#
SRCS+= __assert.c __main.c memset.c skpc.c scanc.c random.c \
@@ -8,5 +8,5 @@
memchr.c
SRCS+= divdi3.S divsi3.S modsi3.S moddi3.S udivdi3.S udivsi3.S \
- umoddi3.S umodsi3.S bswap32.S bswap16.S ntohl.S htonl.S \
+ umoddi3.S umodsi3.S bswap64.S bswap32.S bswap16.S ntohl.S htonl.S \
memcpy.S
Added files:
Index: src/sys/lib/libkern/arch/ia64/bswap64.S
diff -u /dev/null src/sys/lib/libkern/arch/ia64/bswap64.S:1.1
--- /dev/null Mon Jul 20 11:23:04 2009
+++ src/sys/lib/libkern/arch/ia64/bswap64.S Mon Jul 20 11:23:04 2009
@@ -0,0 +1,37 @@
+/* $NetBSD: bswap64.S,v 1.1 2009/07/20 11:23:04 kiyohara Exp $ */
+
+/*-
+ * Copyright (c) 1996 Carnegie-Mellon University.
+ * All rights reserved.
+ *
+ * Author: Chris G. Demetriou
+ *
+ * Permission to use, copy, modify and distribute this software and
+ * its documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS AS IS
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
+ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or software.distribut...@cs.cmu.edu
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie the
+ * rights to redistribute these changes.
+ *
+ * from: NetBSD: htonl.S,v 1.1 1996/04/17 22:36:52 cgd
+ * from: src/sys/libkern/ia64/htonl.S,v 1.2 2002/02/18 20:35:21
+ *
+ * $FreeBSD$
+ */
+
+#define NAME bswap64
+
+#include byte_swap_8.S
Index: src/sys/lib/libkern/arch/ia64/byte_swap_8.S
diff -u /dev/null src/sys/lib/libkern/arch/ia64/byte_swap_8.S:1.1
--- /dev/null Mon Jul 20 11:23:04 2009
+++ src/sys/lib/libkern/arch/ia64/byte_swap_8.S Mon Jul 20 11:23:04 2009
@@ -0,0 +1,45 @@
+/* $NetBSD: byte_swap_8.S,v 1.1 2009/07/20 11:23:04 kiyohara Exp $ */
+
+/*-
+ * Copyright (c) 1996 Carnegie-Mellon University.
+ * All rights reserved.
+ *
+ * Author: Chris G. Demetriou
+ *
+ * Permission to use, copy, modify and distribute this software and
+ * its documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS AS IS
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
+ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or software.distribut...@cs.cmu.edu
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie the
+ * rights to redistribute these changes.
+ */
+
+#include machine/asm.h
+
+#ifndef NAME
+#error NAME not defined
+#endif
+
+/*
+ * Byte-swap a 8-byte quantity.
+ * (Convert 0x0123456789012345 to 0x4523018967452301.)
+ *
+ * Argument is an unsigned 8-byte integer (u_int64_t).
+ */
+ENTRY(NAME, 1)
+ mux1 r8=in0,@rev
+ br.ret.sptk.few rp
+END(NAME)